Solved

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

Posted on 2003-12-02
12
671 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
 

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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now