If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 he 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. |
Ads |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Quotes & apostrophes | Doug | General XP issues or comments | 7 | July 18th 05 12:05 PM |
How do i display arguments in XP shortcuts | Mia | General XP issues or comments | 1 | May 10th 05 04:28 PM |
File and Settings Transfer Wizard | Richard Hi tech Gadgets | Windows XP Help and Support | 10 | May 4th 05 04:36 AM |
System32 folder at start up - I've put the quotes in but they disappear! | mikeot02 | The Basics | 3 | January 12th 05 08:37 PM |
schtasks problems | Doug | Windows XP Help and Support | 2 | July 26th 04 12:29 PM |