Schtasks: Using quotes in arguments


Go Back   Computer Help Articles > Windows XP Perform Maintain
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 06:08 AM
noroominhead@hotmail.com
 
Posts: n/a
Default Schtasks: Using quotes in arguments

Hello All:

I am trying to schedule a backup on Win XP Pro using the following
syntax:

schtasks /create /tn "Incremental Backup" /tr
C:\WINDOWS\system32\ntbackup.exe backup
"@C:\UserProfiles\Administrator\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\Default.bks" /a /d "Set created
1/1/2006 at 4:56 PM" /v:no /r:no /rs:no /hcff /m normal /j
"Incremental Backup" /l:s /f "E:\backup\IncrementalBackup.bkf" /sc
WEEKLY /d TUES,WED,THUR,FRI,SAT,SUN /st 12:00:00 /ru "System"

The error I'm getting when executing this is: "Invalid Argument/Option
- 'backup'"

I believe the issue is that I need to encapsulate the portion of the
string containing the ntbackup.exe and associated arguments, but don't
know for sure. I checked MS.com, and found docs here:
http://www.microsoft.com/technet/pro...297c68d17.mspx
but there were no examples. In addition, the docs mentioned a 262 char
limit on path names, although I _think_ that applies to just the path
to the executable, not any associated arguments.

While I'm aware that i may be able to solve this by putting the
executable and args into a batch file, I'm specifically interested on
if this can be accomplished as above, in a single command. TIA.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unexpected quotes behaviour Ronald.T Windows XP Customize 2 01-05-2006 06:36 AM
where does schtasks job output go? saalwaechter@gmail.com Windows XP General 1 01-05-2006 02:32 AM


All times are GMT. The time now is 03:30 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Schtasks: Using quotes in arguments