Solved

I'm trying to use schtasks.exe to run Backup to CD-RW

Posted on 2003-12-02
12
678 Views
Last Modified: 2008-02-07
I've been trying to use schtasks.exe to run a backup software package to burn a backup of my data on a weekly schedule.  I can't seem to get it to run.  I've even tested it trying to open Outlook express to no luck.  What am I doing wrong.

The script is as follows

schtasks /create /tn weeklybackup /sc weekly /d thu /st 23:00:00 /tr "c:\program files\willow creek software\WCBackupCD.exe" /ub weekly e:\

I've tried moving the tr statement in front of the sc statement.  

help :)
0
Comment
Question by:Jweaver57
  • 4
  • 2
  • 2
  • +3
12 Comments
 

Author Comment

by:Jweaver57
ID: 9860786
When I test it, I get   Sucess:  Attempted to run the scheduled task " weeklybackup".    That's it.  Nothing happens.  The logs show  
"weeklybackup.job" (program) 12/2/2003 12:47:50 PM ** ERROR **
      Unable to start task.
      The specific error is:
      0x80070002: The system cannot find the file specified.
      Try using the Task page Browse button to locate the application.
[ ***** Most recent entry is above this line ***** ]
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9861343
hmm.. try renaming the folder "Willow creek software" something without space, say "wcreeksw"
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 9861392
Also, make sure that you are running the task with the appropriate credentials.  I had this problem with my backups and banged my head against a wall for hours until I discovered that it was set up with the wrong user account.  (Not by me...:)

Note:  the error indicated does not make me think this is the case though.  hmmmmmm

FE
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:Jweaver57
ID: 9861520
When I run "c:\program files\willow creek software\wcbackupcd.exe" /ub weekly e:\
from the command line it runs just fine.  I must be missing something.  
0
 
LVL 43

Expert Comment

by:JFrederick29
ID: 9861745
Try creating the scheduled task through the GUI instead of the command line...
0
 

Author Comment

by:Jweaver57
ID: 9862101
I figured it out.  After creating the task in "schtasks.exe", I went to the Windows Scheduled Tasks applet and opened the scheduled event.  I then modified the "Start in" box to reflect the full path of willow creek software and removed everthing in the "Run" box leaving just the executable.  When applying the changes here it asked to confirm the password to run as again.  I supplied the same password and ran the test from the Windows "Scheduled Tasks" applet and it worked.

Maybe this is what I should have been doing from the beginning but the documentation I used from Windows help didn't explain it that way.    
0
 
LVL 11

Expert Comment

by:adonis1976
ID: 9862107
good idea Jfrederick...
0
 

Author Comment

by:Jweaver57
ID: 9862134
I don't know why but I tried creating the task from the Windows Scheduler applet many times and it didn't work.  Only after I did a combination, as I mentioned last did it work.  

OK,  so what is the right thing to do about awarding points?  
0
 
LVL 40

Expert Comment

by:Fatal_Exception
ID: 9862345
Just glad to see that you resolved the problem.  

FE
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 9862524
Glad you got the problem fixed.  Sounds like you fixed it yourself.  You should click on the link for Community Support on the left side of the page (if you're using the oldlook user interface for Experts Exchange) or click on the button labeled CS at the top righthand side of the page (for the new look), and post a zero point question to have this question deleted so your points can be returned to you.  Make sure to include the reason for the deletion and the url of this question in your Community Support question.
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 9888004
PAQed, with points refunded (500)

SpazMODic
EE Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question