はみ出しRAPTの戯言

- a day after yesterday -

目次

Blog 利用状況

ニュース

書庫

日記カテゴリ

コミュニティ リンク

Windows 7 のタスクスケジューラでバッチファイルを実行する

今まで Windows XP のタスクスケジューラで、毎日一定時刻にバックアップを取るようにしていたが、
PC の劣化に伴い、データ載せ替えの際、OS を Windows 7 にした。

データの移行は、NIC 同士を LAN ケーブルでつないで、手動で IP アドレスを設定し、フォルダ共有で
ファイルを受け渡しするという単純作業で楽にできた。

タスクスケジューラで使用していたバッチファイルもコピーし、なんとなくタスクを設定してみたが、
翌朝動作を確認したら、コピーできていなかった。

ここで、散々設定を見直したり、ヘルプを見たり、ググったりしてみたが、一向に解決できず。

丸一日かけてどうやら解決策が判明したっぽいので備忘録として記す。
かなりハマった上に、情報の少なさときたら!
とりあえず色々と試行錯誤したところ、下記でうまくいった。

タスクスケジューラの起動:[スタート]-[管理ツール]-[タスク スケジューラ]

新しいタスクの作成:
[全般] タブ:
[名前] には分かりやすい名前を。「夜間バックアップ」とか。。
(後で変更できないっぽい。C:\Windows\System32\Tasks にあるファイル名を変更すれば可能? 未検証。)
(※[最上位の特権で実行する] にチェックを入れると、バッチファイル内でフォルダを作ったりするとアクセス権が設定されてしまう。)

[全般] タブ:
[ユーザーがログオンしているかどうかにかかわらず実行する]?にチェック

[トリガー] タブ:
[新規] で、[スケジュールに従う] / [毎日] / [有効]

[操作] タブ:
[プログラムの開始]
[プログラム/スクリプト] に実行したいバッチファイルのフルパス ("C:\Program Files (x86)\FastCopy\NightlyBackup.bat" など)
[開始(オプション)] に上記で指定したバッチファイルの作業フォルダを入れる。※パスにスペースがあったとしても、ここではダブルクォーテーションを入れてはダメ

[履歴] タブは規定では無効となっているが、タスクスケジューラのメイン画面右側にある「操作」ウィンドウ内の「すべてのタスク履歴を有効にする」を選択することで有効になる。
(※この設定はここ以外からは設定できなさげ。起動時のウィンドウサイズでは、ここのテキストが省略され、読めなくなっていたため、ヘルプを見てもどこに設定があるか見つけられなかった。)

上記まで入力後、OK ボタンを押下すると、実行ユーザーの認証用パスワードを要求され、正しく入力するとタスクが正常に追加される。

追加したタスクの有効/無効の切り替えなどは、プロパティを開いても変更できるが、先ほどの「操作」ウィンドウで変更した方が便利。

?

さて、これでうまくいくはずだ。

投稿日時 : 2010年4月22日 16:27

コメントを追加

# re: Windows 7 のタスクスケジューラでバッチファイルを実行する 2012/10/04 16:17 とーりすがり

C:\Windows\System32\Tasks

エクスプローラーからファイル名変えたらタスクスケジューラ―で表示されませんでした。元のファイル名に戻したら復活しました。これ以上は検証してませんが、不便すね・・・

# re: Windows 7 のタスクスケジューラでバッチファイルを実行する 2012/10/14 4:34 RAPT

とーりすがりさん>
検証ありがとうございます。
どっかにインデックスとかキャッシュされてるんですかねー?

# MYRrnjaPXd 2015/01/27 0:38 Elbert

Could you tell me the dialing code for ? http://sacraliturgia2013-italy.com/don-bux/ 2 .5 klonopin "Etisalat Group holds a stake in PTCL with managerialcontrol and PTCL has expressed an interest in Warid Telecom.Etisalat Group cannot offer further comment and will not commenton speculation regarding Warid Telecom," Etisalat's spokesmanAhmed bin Ali said in an emailed statement.

# gVBeXtzSKpdRB 2015/01/27 0:38 Clemente

What's the current interest rate for personal loans? http://www.medicalreformgroup.ca/newsletters/ acetaminophen and codeine phosphate 300 mg 30 mg high Bond insurers will play a key role in Detroit's case. Whilea portion of the city's $1.13 billion in general obligationbonds are secured by city assets, about $651 million of it issecured only by the ability to raise taxes. The city's emergencymanager, Kevyn Orr, has said he will treat that portion of thedebt as an unsecured claim.

# uhXJASIoLYXMDfXt 2015/01/28 6:12 Chong

A pension scheme http://www.politicaltheology.com/blog/standinginwitness/ zz 7.5 is 7.5mg zopiclone Even with the unanimous decision by the nine-member Connecticut Freedom of Information Commission on Wednesday, it is still uncertain when or whether the tapes will be released to numerous media outlets that have sought them since the December 14, 2012 tragedy, considered one of the worst school shootings in U.S. history.

# OrCzLcgrzFSLINg 2015/01/29 11:49 Lawrence

How many more years do you have to go? http://newcastlecomics.com/blog/ebay-store/ what is codeine phosphate 30 mg used for Extreme pogo jumpers from across the globe kick things off on Friday, with exhibitions at city landmarks all day. Pogo daredevils will try breaking Guinness World Records, like the most consecutive backflips (15) or most jumps on a pogo stick in one minute (265) in Tompkins Square Park on Saturday from 1 p.m. to 5 p.m. Locals can also try qualifying for spots in the next day�s finals.

# wJKePwCTYxCGxehxAfD 2015/01/29 11:49 Dante

I'm a housewife http://newcastlecomics.com/blog/ebay-store/ apap/codeine phosphate 300 mg Meanwhile, Australia's All Ordinaries rose sharply in early trading and then steadily till the afternoon. Thereafter, the average gave back some of its gains but closed up 9.40 points or 0.19 percent at 5,036.

# KRBBKEFrqkdcyFbuM 2015/01/29 11:49 Eliseo

I'd like to pay this cheque in, please http://www.video-to-flash.com/video_to_flv/ can 2mg of clonazepam get you high Rates for those ages 45 to 64, the bulk of the so-calledBaby Boomer generation, were also a concern as their obesityrates were 30 percent or higher in 41 states. In Alabama andLouisiana, their rate reached 40 percent.

# aoeiJSPyTgFuAjLlJ 2015/02/04 22:41 Adalberto

What do you do? http://www.jrdneng.com/careers.htm Diamox Mg A person with insider knowledge stole data including names,addresses, birth dates, and bank account information, theworld�s second-biggest mobile-phone carrier said in a statementtoday. The hacker had no access to credit-card information,passwords, PIN numbers or mobile-phone numbers, Vodafone said.

# bweskwDjKb 2015/02/06 3:53 Terry

Can I call you back? http://www.retendo.com.pl/filmy/ motilium 10 does it work NBC polling showed that more than half of Americans areworried about the vast operation that sweeps up information onphone calls, emails and other communications, but just 11percent support Edward Snowden's decision to flee the UnitedStates and release details about the effort to the media.

# jfRcKKrACRxorpRsWQ 2015/02/06 14:54 Tommie

Will I get travelling expenses? http://www.argentfm.com/quality/ direct psyday loan lenders XL Group said on Wednesday that it was an insurer ofMMA and its people were on the scene at Lac-Megantic workingwith the company and authorities. An XL spokeswoman declined tocomment on the details of the policy.

# goOHIbNszJggRNNXghp 2015/02/06 14:55 Behappy

Remove card http://www.altenergetika.com/o-nama loan prequalification calculator Cleveland remains in the second AL wild-card spot, one game ahead of Texas and one behind Tampa Bay. The Rangers beat Houston 3-2, and the Rays shut out the Yankees 7-0. With five games left, any loss can be devastating.

# ivFtRpNtmhfrnyWT 2015/02/07 8:38 Tommie

What sort of music do you like? http://www.wonderbra.ca/my-favorites/ tab tenormin 25 mg "The agencies know perfectly well that every country, evenwhen they cooperate on anti-terrorism, spies on its allies. TheAmericans spy on us on the commercial and industrial level likewe spy on them, because it's in the national interest to defendour businesses. No one is fooled."

# xBHSJEvLWxPzAJQWH 2015/02/07 8:38 Eddie

What do you want to do when you've finished? http://www.wonderbra.ca/innovation/ tenormin tablets 50 mg "Ultimately, she ends up living through selfies she takes - and while we may laugh at that, a lot of people, myself included, have a little bit of that bug," the 33-year-old New Yorker said. "(The desire) to have that flawless digital profile for people to admire."

# aTDsQPgTAUcsF 2015/02/07 8:38 Tommie

Could I ask who's calling? http://www.racc.org/about/equity quetiapine fumarate discount As the search for survivors of a deadly train crash in France continued on Saturday, the nation's transport minister said human error did not cause the derailment outside Paris on Friday that left at least six people dead.

# VaTrmZxsoaE 2015/02/07 8:39 Salvatore

I read a lot http://www.wonderbra.ca/about-us/ buy cheap tenormin "He should go back down south," said Rose Ann Lozinski, a Catholic. "We believe in everybody getting along here. I've been down south and seen how they treat certain groups of people. I have no great love for the south. I don't think they've ever come together after the Civil War."

# GSpYtTAaxFrX 2015/02/07 8:39 Augustine

Incorrect PIN http://www.wonderbra.ca/innovation/ tenormin 50 Tecfidera, which is widely expected to become the No. 1 oraltreatment for the disease, with annual sales of more than $3billion, was launched in April. Biogen is expected to reportsales for the drug's first few weeks on the market on Thursday.

# aVyAleEwls 2015/02/07 23:15 Danilo

The National Gallery http://www.sporttaplalkozas.com/sporttaplalkozas/bemutatkozas pay day loan oregon A lot has gone wrong for the Jets over the past 10 years, but even had they been managed better and coached better and played better, they still had to go up against the Patriots of Belichick and Brady, one of the greatest football dynasties in the history of the sport, whether the Giants clipped them a couple of times in Super Bowls or not.

# KDolaDzgbfmo 2015/02/07 23:15 Arturo

I'm not interested in football http://www.professorpotts.com/links/ personal long term loans poor credit Show your effortless off-duty style credentials and sport an oversized T-shirt like Selena Gomez here. The sports luxe look has been a keen trend with the big style players including Rihanna, Rita Ora and Cara Delevingne who alternate between cropped tops and masculine sweats that they give their own dose of feminine charm to by styling with skinny jeans and a few key accessories.

# VkYnotWpbKgSA 2015/02/07 23:15 Graham

Do you play any instruments? http://www.professorpotts.com/links/ cash loans places on merritt blvd “The phenomenon is caused by the current elevation of the sun in the sky. It currently lasts for approximately two hours per day, with initial modeling suggesting that it will be present for approximately two to three weeks.

# GDODdshdHNVXfJ 2015/02/08 12:15 Bryant

We've got a joint account http://www.sullivans.com.au/free-inclusions/ azithromycin price without insurance Davis, 50, who is considering running for Texas governor, gained national attention in June when she spoke for nearly 11 hours to temporarily stall passage of the abortion measure. Fans and supporters contributed about $1 million to her campaign in the days following the effort, which ultimately failed to stop the proposal becoming law.

# ZbUmVYwdSQuDkOIRmQH 2015/02/08 12:15 Claire

I'm in a band http://www.robertrathbone.co.uk/index.php/blog Ethinyl Estradiol And Drospirenone In Britain, the landscape movement and the Picturesque, with their emphasis on circuitous paths regulated by "eye-catchers" and framed views, used seats to help promote this switch from the active to the contemplative. Stone follies and temples usually incorporated seats, cold and hard as tombs, in the form of stone benches.

# uOaVXgKnHEb 2015/02/08 12:15 Zachariah

Whereabouts are you from? http://www.midwalesshootingcentre.com/results.html Purchase Olanzapine Online PSA screening for prostate cancer is controversial. The U.S. Preventive Services Task Force, an independent panel of experts, recommends against using PSA screening for all men. Most medical groups recommend that doctors and patients discuss the issue so men can make an informed decision.

# gjlGmYqHYsA 2015/02/08 12:16 Zachary

I'm doing a phd in chemistry http://www.robertrathbone.co.uk/index.php/blog Generic Brand For Yasmin If the punishment Selig were to impose in such a scenario was excessive, Rodriguez could turn to another provision of the basic agreement that gives him the opportunity to ask arbitrator Frederic Horowitz to review it; Horowitz, however, does not have the right to stay A-Rod�s suspension. So invoking Article XI would effectively sideline A-Rod for much of the remaining season.

# WWqIqlCKzkBv 2015/02/09 8:48 Monty

I'm interested in http://atecuccod.com/index.php/kapcsolat a loan to pay off debt The announcement of the "democratization package" follows the declaration this week by the armed Kurdistan Workers Party (PKK) that it had halted its withdrawal of fighters from Turkey because the government had failed to take steps it had agreed to.

# ZYwBmkPKuKuxWs 2015/02/09 8:48 Francisco

Is this a temporary or permanent position? http://www.sporttaplalkozas.com/sporttaplalkozas/eletmod-program cash advance macclenny fl Last year, it took Activision Blizzard Inc's first-person shooter title "Call Of Duty: Black Ops II" 15 days to hit $1 billion in global sales after its November release. That game took in sales of $500 million on its first day.

# mAIoosgQVsBTbE 2015/02/09 8:48 Geoffrey

The United States http://atecuccod.com/index.php/kapcsolat cash advance ypsilanti U.N. Secretary-General Ban Ki-moon wants Sellstrom to haveunfettered access to investigate all credible alleged chemicalattacks while Assad's government wants the U.N. experts toconfine their investigation to the March 19 incident. Thatdisagreement has caused a deadlock in talks between the UnitedNations and Syria on access for the inspection team.

# ieGKeWcQUBWmG 2015/02/09 8:48 Stewart

What do you want to do when you've finished? http://atecuccod.com/index.php/kapcsolat financing mobile home Another obstacle is that, despite its success, China remains an insular place. It has long been difficult for Chinese to travel abroad, particularly to the West, and so its managers are not exactly cosmopolites who readily grasp what works in the trillion-dollar markets of the West.

# QiBRPUEPsUYsa 2015/02/10 16:26 Dennis

Do you play any instruments? http://www.mac-center.com/iphone/ private money construction loans One key factor identified in the report is the extraordinary size of spending on R&D - about $163bn last year, an amazing 18% increase on the previous year with further rises planned, with science seen as a central element of China's long-term strategy for growth.

# kNkfKNhhregmaTMb 2015/02/10 16:26 Mary

Will I have to work shifts? http://compostcrew.com/faq/ private stundent loan The day's economic data was mixed, however, with growth inNew York state manufacturing for July accelerating, while Juneretail sales fell short of expectations. May businessinventories barely increased.

# yqJfoZslvGHfMddxT 2015/02/10 21:06 Buford

We went to university together http://www.ryan-browne.co.uk/about/ Buy Tadalis BlackBerry, once a stock market darling, has bled market share to Apple Inc and phones using Google Inc's Android operating system, and its new BlackBerry 10 smartphones have failed to gain traction with consumers.

# hKeveQIRNa 2015/02/10 21:06 Reggie

Hello good day http://poderesmentales.com/duocobra/ Keflex Cost The Santa Clara, California company is now scrambling to tapinto new markets to help it keep its multi-billion dollarfabrication plants humming near full capacity and protect itsenviable 63-percent gross margins.

# iwVGVDzIqvaXsHBNm 2015/02/12 0:55 Dorsey

Looking for a job http://www.theferrerspartnership.com/profile-of-trevor-potter loan consolidation help "We will remain reliable in the role of stability anchor andgrowth locomotive. We will keep Europe together," said FinanceMinister Wolfgang Schaeuble, who has played an influential rolein Germany's management of the euro zone debt crisis.

# PnjIEvhdhxSIAt 2015/02/12 0:55 Reinaldo

I've got a part-time job https://josbinder.at/index.php?nav=37 real same day loans When droplets of water condense onto a metal surface with a specific kind of superhydrophobic coating and at least two of the droplets coalesce, they can spontaneously jump from the surface. As they do so, they release an excess surface energy. Yet scientists wanted to find out the reason for the repulsion between jumping droplets after they leave the surface.

# gWvgxZRdWQmJjlHa 2015/02/12 0:55 Jared

Enter your PIN http://www.groteverhalen.info/index.php/agenda unemployed cash advance Gender dynamics, socio-economic status, and unusual spelling can also play a role in determining the behavior of a child. That's why it's perfectly fine for parents to spend a few months fretting over the potential drawbacks of choosing a child's name. Sometimes, parents desire strong names for boys, and more feminine names for girls. Most parents, it would seem, take it a step further and ask if the name they choose could be interpreted a certain way, or rhymed with a certain word that get their child teased in school.

# YgSYtebrzByMZ 2015/02/12 0:55 Gabriella

I'm doing an internship http://thisisaway.org/get-involved/ payday lender sites with no credit checks The admissions increase, while small, came after a slowfirst quarter as HCA and other hospital chains struggled toattract patients. People are using medical services lessfrequently due to rising out-of-pocket expenses for theirinsurance plans, or because they have no insurance coverage.

# yGGPZFgGzHDDXHpj 2015/02/12 0:55 Sammy

We'd like to invite you for an interview http://esuf.org/news/ libor interest only loans "We'll try to avoid passing higher costs on to retailprices," Aeon's Senior Executive Vice President Yoshiki Moritold an earnings briefing this week. The company's 9.8 percentprofit increase was driven largely by its consumer creditoperations and not its supermarkets.

# wUFqqynrMpj 2015/02/24 19:31 William

I can't get through at the moment http://www.wisconsinplanners.org/requestsforproposals.html half beta prograne 80 mg propranolol Content engaging our readers now, with additional prominence accorded if the story is rapidly gaining attention. Our WSJ algorithm comprises 30% page views, 20% Facebook, 20% Twitter, 20% email shares and 10% comments.

# qeTvtUyuLNV 2015/02/24 19:31 Chris

I'm retired http://www.horsdoeuvres.fr/contact/ glucophage tablets Bidders also lament that Manila could not guarantee tariffhikes, a politically charged issue in a city of about 12 millionpeople where the daily minimum wage is under $12. Manila has notimposed a fare hike in more than a decade on any of its threelight rail lines due to stiff public opposition, a track recordwhich bidders say could lead to a cash flow squeeze.

# DhaShPirUMt 2015/02/25 22:33 Norbert

Could I take your name and number, please? http://www.orthopaedic-institute.org/fundraising.html where can i buy cheap domperidone �Yankee fans should be so appreciative to have a guy like Alex Rodriguez on their team. Do you know how good he is? Do you realize what a player he is, the things he�s accomplished already before the age of 30?�

# SGOgmwMfjT 2015/02/25 22:33 Eduardo

I live in London http://www.orthopaedic-institute.org/find_us.html motilium instant 10 mg prospect With the success of BBC series "Downton Abby" and the release of Lee Daniels' new film "The Butler" this Friday, there has never been more interest in white-gloved caretakers. But aside from watching "Mr. Belvedere" in the '80s, most Americans have very few interactions with butlers.

# ZbjZUAXBPwkSMFjWlGX 2015/02/27 2:02 Fernando

I work for a publishers http://www.alexscheele.co.uk/services/ Generic Coreg Cr In June, Senators Jeff Merkley, a Democrat from Oregon, andMike Lee, a Utah Republican, introduced a bill that wouldrequire the government to declassify significant court rulingsconcerning the FISA court and its supervision of secretwiretapping programs.

# eHLIqpCuouKf 2015/02/27 2:02 Ahmad

Directory enquiries http://www.nude-webdesign.com/website-design-development/ abilify aripiprazole price The U.S. Energy Information Administration said on Monday it did not know if it would publish its weekly inventory data if the government shut down. That data lists U.S. supplies of crude and fuels, including gasoline, and is closely watched by markets.

# uCOFzPWMuwlRpYC 2015/02/27 2:02 Nicolas

Thanks funny site http://www.nude-webdesign.com/testimonials/ 20 mg abilify tube, Were those three men arrested and charged with murder? Did they have a trial? Were they convicted or acquited? If they had killed that boy and the police had failed to arrest them because they called it self-defense, how would you feel? If they went to court and the jury acquited them because they believed it was self-defense, how would you feel? I believe if the scenario played out the same way as it did in the Zimmerman case, you would hear plenty of people calling it unjust.

# bGWWeYoBwPtclo 2015/02/27 2:02 Melissa

Will I get travelling expenses? http://www.transformatlab.eu/participants bimatoprost online purchase But it has proved fiendishly difficult to apply. Five years after cratering financial firms ignited a global crisis, and three years after Dodd-Frank outlined the Volcker rule as a central part of the government response, the rule languishes unfinished and unenforced, mired in policy tangles and infighting among five separate agencies whose job is to produce the fine print.

タイトル  
名前  
URL
コメント