Solved

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

Posted on 2003-12-02
12
680 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…

739 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