A Windows XP help forum. PCbanter

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.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Performance and Maintainance of XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Schtasks: Using quotes in arguments



 
 
Thread Tools Display Modes
  #1  
Old January 4th 06, 04:29 AM posted to microsoft.public.windowsxp.perform_maintain
external usenet poster
 
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 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

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






All times are GMT +1. The time now is 01:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.