Solved

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

Posted on 2003-12-02
12
681 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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