はみ出し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

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

# ncbSqrrelYnFVRCNwx 2014/07/28 21:10 http://dancingwithwater.com

Thanks for the blog article. Awesome.

# kphelwejJMdhLtCxq 2014/07/28 22:02 http://wingatephotography.info/story.php?id=37624

Fantastic blog.Thanks Again. Really Great.

# MJGuGLBEBCZtWJLXeAB 2014/07/28 23:41 http://www.joinnearn.com

Really informative article post. Fantastic.

# qsXchKOmgIyUkLz 2014/07/29 1:51 http://discoverdowntownmobile.info/story/19219

I value the blog post.Really looking forward to read more. Want more.

# bqbUrIlcID 2014/07/29 3:07 http://avnershrim.info/story.php?id=25427

Great blog. Awesome.

# nViArenMPQDKrIb 2014/07/29 4:25 http://sadik48.ru/user/peyueppebadiid/

Looking forward to reading more. Great blog article.Much thanks again. Will read on...

# GDSNFlCXeX 2014/07/29 5:43 http://psi-studio.info/story.php?id=27215

Very neat article post. Much obliged.

# qItHHCSZwNglSG 2014/07/29 19:30 http://www.newyorkuniversityranking.com/

Thanks for sharing, this is a fantastic blog article.Much thanks again. Great.

# aVEiOZvmJJVlY 2014/07/31 16:22 https://afterdark.co/bath

Really appreciate you sharing this post.Really looking forward to read more.

# AphKzsWadKaD 2014/07/31 19:25 http://www.computerwormsliverpool.com/

Im thankful for the blog.Really looking forward to read more. Want more.

# SROEswpJKGV 2014/07/31 20:34 https://play.google.com/store/apps/details?id=memo

I appreciate you sharing this article. Will read on...

# sDGSoEExzjxUpd 2014/07/31 21:52 http://melanictees.com

Hey, thanks for the blog article.Thanks Again. Great.

# cABCpSlaBOTSxs 2014/07/31 23:13 http://in24.co

Very informative blog article. Awesome.

# BMTfdwffLcdtoS 2014/07/31 23:18 http://daem-soft.ru/user/ongrcuycicgyra/

Really appreciate you sharing this post.Really looking forward to read more. Keep writing.

# TWVLmxlhID 2014/08/01 0:35 http://www.computerstoresusa.com/answers

Thanks-a-mundo for the blog.Much thanks again. Want more.

# EbrZmzHMMQhjLhjdf 2014/08/01 0:37 http://ava-pskov.ru/index.php?subaction=userinfo&a

Enjoyed every bit of your article. Will read on...

# wVSqWrlkdGft 2014/08/01 3:20 http://www.darseries.com/user/ournopbrdrbndi/

Thanks a lot for the blog post.Thanks Again. Really Great.

# UyZNgAiXabPO 2014/08/01 14:15 http://masinsurance.info/story.php?id=24477

I really enjoy the article.Thanks Again. Much obliged.

# ohHCWopYPBgs 2014/08/01 18:00 http://theexpendables3film.com/

Great article post.Thanks Again. Much obliged.

# AriQyRquLeT 2014/08/01 19:48 http://flyforsinkelse.dk/

Really informative blog post.Really looking forward to read more. Fantastic.

# fEDrLAorLeJQnWeCMQ 2014/08/02 3:12 https://medium.com/@BestMedicarePlanTurning65/best

Major thanks for the article post. Fantastic.

# hRySZQkXvYhb 2014/08/02 4:01 http://auckland-e-bikes.co.nz/electric-bike-auckla

Very informative blog.Much thanks again. Awesome.

# edWISSYtUCROdDxWoE 2014/08/02 11:56 http://crorkz.com/

A6f8SQ Thanks again for the blog post. Really Great.

# sbhGHekMynP 2014/08/02 15:07 http://www.bellenews.com

Thanks so much for the blog.Really looking forward to read more. Much obliged.

# TqdZoWewHUtJGFLQ 2014/08/02 18:41 http://www.grailindicator.com

I really enjoy the article post.Really looking forward to read more. Awesome.

# znHihgtLTpFp 2014/08/02 21:46 https://www.youtube.com/watch?v=RCfvinbybnc

Really appreciate you sharing this blog post.Thanks Again. Keep writing.

# ZGYgXhfKHFbrqyavMaZ 2014/08/03 0:26 http://www.great1info.com

wow, awesome blog post.Much thanks again. Great.

# bZLUAQDtioh 2014/08/03 4:27 https://www.linkedin.com/company/law-offices-of-je

I really enjoy the blog.Much thanks again. Want more.

# gznIjWWIVD 2014/08/03 21:32 http://www.MasterForexProfits.com

Muchos Gracias for your post.Really looking forward to read more. Will read on...

# JmJTCeifThKHYYsghMC 2014/08/03 23:03 http://www.lowerbackpaintreatment.net/lower-back-p

Im grateful for the article post.Really looking forward to read more. Much obliged.

# TQUVYMxKeJstaCT 2014/08/03 23:46 http://full2design.com/pr9-profiles-backlinks/

Im grateful for the blog post.Really looking forward to read more. Much obliged.

# BvuBnzsjYABlQJdSgQh 2014/08/04 5:14 http://marcmorrisair.com

Very informative blog post.Much thanks again. Fantastic.

# FyODGicqsfJag 2014/08/04 8:42 http://freetimebonanza.com

I value the blog article.Really looking forward to read more. Great.

# RNdwkWahHkQDaG 2014/08/04 14:32 http://www.railfan.ne.jp/userinfo.php?uid=310297

Really appreciate you sharing this article post.Thanks Again.

# QoeanzBDXe 2014/08/04 17:06 http://onlinefreegames4u.com/

Awesome post.Much thanks again.

# QaveUtIjuez 2014/08/04 21:29 http://www.baltimoretickets.com

Thanks-a-mundo for the blog article.Really looking forward to read more. Really Great.

# WXfjwkCgky 2014/08/04 23:27 http://dellpowervault.info/story/72138

I truly appreciate this article.Thanks Again. Really Great.

# lEWbwDjqWgETtavkh 2014/08/05 6:17 http://konkursy-online.info/story/79210

Fantastic blog post. Awesome.

# EIjUAZiwriKXBAitlZ 2014/08/05 6:57 http://crorkz.com/

ZCVhPQ Very informative article post.Much thanks again. Keep writing.

# cvWwgsHWcdguefY 2014/08/05 11:55 http://delldimension.info/story/72809

wow, awesome blog post.Really looking forward to read more. Keep writing.

# ddIkIAZljG 2014/08/06 0:29 http://www.kontakt-keramika.ru/forum/index.php?act

I am so grateful for your article.Really looking forward to read more. Keep writing.

# LDFtvxzBQBKbapaG 2014/08/06 3:10 http://maminportal.ru/user/radcdbbauoduon/

Thanks a lot for the blog.Much thanks again. Fantastic.

# PtOKSoZwNOklOez 2014/08/06 7:13 http://www.phpbbplanet.com/forumturkey/profile.php

Really enjoyed this article post. Fantastic.

# HLpBlKiYMv 2014/08/06 8:37 http://yournet.am/user/iprniigadaioyi/

Thanks-a-mundo for the blog post. Fantastic.

# ArKUlkZuuM 2014/08/06 15:49 http://www.fiverr.com/social24hrs/sent-you-500-goo

Awesome article post.Thanks Again.

# MqmwkKPbJeRoDlwTSWM 2014/08/06 18:05 http://school10.org/index/8-6412

I truly appreciate this article.Thanks Again. Awesome.

# gkrEUFGlgWNMyZEZ 2014/08/06 19:32 http://akashicwithjordana.info/story.php?id=30952

Really enjoyed this article.

# bFClpbZcUActdpNjQbd 2014/08/06 20:56 http://vagrius.ru/user/gaaaenygcdiauy/

Looking forward to reading more. Great blog article.Really looking forward to read more. Really Great.

# VKlpJlALbBB 2014/08/07 16:05 http://www.kutsenko.ru/forum/index.php?showuser=43

I value the blog article.Much thanks again. Much obliged.

# VOzlSfXoxA 2014/08/07 23:52 http://hostgatorcouponoutlet.com/

I am so grateful for your article post. Fantastic.

# CvkDTDutUaPBs 2014/08/08 0:19 http://netishin.e-u.in.ua/user/iebadbdcuiopie/

This is one awesome blog post.Thanks Again. Keep writing.

# MRreDtRYgCyLZw 2014/08/08 1:43 http://www.lhasa.ru/board/tools.php?event=profile&

Enjoyed every bit of your article.

# UYrfhtNlQfivcnwO 2014/08/08 2:16 https://twitter.com/KatieKnipp

Thanks a lot for the article post.Really looking forward to read more.

# CKLdxkuEic 2014/08/08 3:09 http://glossopgifts.co.uk/

Very informative blog article.Much thanks again. Great.

# gTZMVHZAgS 2014/08/08 7:08 http://www.isssee.com/

Thanks so much for the blog post.Really looking forward to read more. Awesome.

# hWtRQXrwvT 2014/08/08 14:03 http://bestgymequipment.co/product/stamina-15-0120

Thanks for sharing, this is a fantastic blog. Will read on...

# uASlYuPIYjlFQANZ 2014/08/08 15:39 http://www.wisenapkin.com

Great blog.Much thanks again. Great.

# YZsIaPYhYovByh 2014/08/08 18:05 https://www.youtube.com/watch?v=KCbWlT0APm4

Im obliged for the article.Really looking forward to read more. Will read on...

# WPfqXfeuDgGGDoiMp 2014/08/08 18:59 https://www.rebelmouse.com/ArtLover/

Very good blog post.Really looking forward to read more. Want more.

# xzWsUqJenGY 2014/08/08 21:12 http://pixmenow.com/

This is one awesome article. Great.

# lJteIoCyLdy 2014/08/08 22:00 https://www.youtube.com/watch?v=JhPsdVP99cM

I really enjoy the blog article.Really looking forward to read more. Fantastic.

# XPwUNmQaoeVmrciUJsf 2014/08/09 0:07 http://fameburst.com/

This is one awesome blog article.Much thanks again. Much obliged.

# gSQvbVLhhFHCeYZ 2014/08/09 1:29 http://www.amjobhunter.info

Im grateful for the blog.Really looking forward to read more. Want more.

# bqFzfOPsQzPLBP 2014/08/09 4:16 http://www.topfreeforum.com/eliteriders/profile.ph

Im grateful for the post.Much thanks again.

# AudVNMNnDGpCXngoTmF 2014/08/09 7:03 http://jp-jc7.info/story/18324

Awesome post.Really looking forward to read more. Awesome.

# iyOXNDDGvgAoGSq 2014/08/09 8:24 http://eggharborproperties.info/story.php?id=31510

wow, awesome blog post. Great.

# hjDMuGdaIPlXQH 2014/08/09 18:58 http://www.stumbleupon.com/stumbler/ylyw

Thanks for sharing, this is a fantastic article post.Much thanks again. Great.

# ABQGKQxWzoicwlaXZ 2014/08/09 20:33 http://allpcsoftware.com/free-download-gom-player-

Really enjoyed this blog article. Great.

# RRVnoeWhfZaEY 2014/08/11 14:31 http://www.walktc.com/

Thanks-a-mundo for the blog. Keep writing.

# atiFPodPdpX 2014/08/11 19:18 https://youthradio.org/news/article/cheating-in-th

wow, awesome article.Thanks Again. Want more.

# GcdLJRiolyBGalA 2014/08/11 22:34 http://gaigoi2014.info

Fantastic blog. Much obliged.

# EzHcMSayYIDLiVPFEAW 2014/08/12 19:20 http://dellpowervault.info/story/72067

Thanks so much for the article.Much thanks again.

# gWGFbBfPsaREKLRpA 2014/08/12 23:58 http://hottchatt.com/blog/view/17619/the-art-of-se

Im thankful for the blog article. Keep writing.

# uVknJEokIJShc 2014/08/13 1:44 http://www.amazon.com/Wool-Dryer-Balls-Softener-Ec

Very neat blog article.Thanks Again. Really Great.

# YmGwxCwmIuOgLeriJX 2014/08/13 17:47 http://fifa14.hack2day.com

A round of applause for your post.Thanks Again.

# JmSNhPYqlvsqQZsb 2014/08/13 18:02 http://ekyrs.org/support/index.php?action=profile;

I loved your post.Thanks Again. Great.

# EdGjzHpkuFKtmRhNLh 2014/08/13 19:24 http://www.fourcorners.info

Very neat article post. Will read on...

# xFtIDqJNODeMlQCnnEH 2014/08/13 19:31 https://www.facebook.com/comodescargarvideosdeyout

Very good blog article.Much thanks again. Great.

# JlFAbEWFIT 2014/08/13 22:31 http://www.level6blaster.info

I truly appreciate this article.Thanks Again. Great.

# OWYCqVdwqOPoHgzfxh 2014/08/14 6:00 http://new.pitchengine.com/pitches/9153e4ea-b94c-4

Thanks-a-mundo for the blog post.Really looking forward to read more. Fantastic.

# RQBOqjZfnG 2014/08/14 16:22 http://youtu.be/hBlM7joTXVc

Very good article post. Will read on...

# mZztoaBqwMqEA 2014/08/14 16:24 http://www.propertyblogshop.com

Hey, thanks for the blog article.Thanks Again. Awesome.

# itbfwDsyiWqIuoLIUcW 2014/08/14 19:32 http://offredemploi.co/category/pole-emplois/

I appreciate you sharing this blog. Fantastic.

# stWqmwFlFTa 2014/08/15 16:48 http://www.escortsinlondon.tv/

Very good article post.Thanks Again.

# GtNguIMhCLvTZlqdP 2014/08/15 19:23 http://www.instructables.com/id/E9H1DV2HYTNZMAF/

Awesome article.Really looking forward to read more. Will read on...

# SwbivcZfYyoKLB 2014/08/15 19:58 http://amzn.to/1uT8ffm

Thanks for the article post.Much thanks again. Really Great.

# AqmMHSQXUoFOIjc 2014/08/16 17:56 http://coolptp.com/

Great, thanks for sharing this article. Awesome.

# MEZYMEbETPd 2014/08/17 0:00 http://www.cometohack.com/

Im obliged for the blog article.Really looking forward to read more.

# JxOmfIbOit 2014/08/18 4:08 http://www.firstclassdallas.com/Dallas-Restaurants

Thanks for sharing, this is a fantastic blog. Fantastic.

# ZnddyrxGSlaJ 2014/08/18 20:21 http://fishing.ya1.ru/index.php?subaction=userinfo

Very neat blog post. Keep writing.

# HvcIboJTqdtTo 2014/08/19 17:11 http://www.alesandra.lt/drabuziai/chalatai/

I truly appreciate this blog post.Much thanks again. Awesome.

# wcyzMcxZlTGhWFs 2014/08/19 19:35 http://vagrius.ru/user/igrnrpepbbgcgu/

Thanks a lot for the article post.Really looking forward to read more. Much obliged.

# PxQSmAgNDMRqwq 2014/08/20 0:07 http://deslabit.biz/

Really informative article post. Much obliged.

# NRipCbLUgmH 2014/08/20 18:31 http://www.dardarkom.com/user/pcbcciioaebnne/

Very informative blog.Really looking forward to read more. Fantastic.

# lBMdwajVkFIM 2014/08/21 17:20 http://www.myfilmebi.net/user/anddcpunbpoiir/

Really informative article.

# wRwOknZxhG 2014/08/21 19:40 http://www.iphonerepairleeds.com/

Really enjoyed this blog. Want more.

# RJIfyuhHvkj 2014/08/21 21:05 http://www.irectify.co.uk/

Thanks-a-mundo for the article.Really looking forward to read more. Will read on...

# ohbQeLJwevGIPj 2014/08/21 22:29 http://www.diamandis.com/testimonial/john-smith-sc

I really liked your article post. Fantastic.

# vsxodiAnpoNdXM 2014/08/21 23:55 http://www.optimaxruinedmylife.com/

Really enjoyed this article. Want more.

タイトル  
名前  
URL
コメント