"ntbackup" of dir w/ space in name ("program files")

Tell me how I can use the commandline ntbackup to back up just the "program files" directory.  Figuratively, I want to:

ntbackup backup "d:\program files"          /v /d "janelle d:\program files"      /hc:on /t Normal      /l d:\user

Without the quotes around "d:\program files" it tells me I have an invalid parameter (no doubt "files").

With the quotes, it works but backs up "C:" instead of "d:\program files"!

I have tried d:\"program files", but that tells me I have a bad command line parameter too.
rclark022197Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
BlackManConnect With a Mentor Commented:
Your problem is fixed is SP4. The problem is documented in Microsoft KB, http://support.microsoft.com/support/kb/articles/q187/5/19.asp?FR=0
0
 
gikamCommented:
check the order of parameters
0
 
jminckCommented:
try c:\progra~1
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
j_powersCommented:
According to the following keys:

ntbackup operation path [/a][/v][/r][/d "text"][/b
][/hc:{on | off}] [/t {option}][/l "filename"][/e][/tape
:{n}]

You should be able to type

ntbackup backup d:\program files /v /d "janelle d:\program files" /hc:on /t Normal /l "d:\user"

And it will back up the program files. The difference between the two is the quotes in the d:\program files on the path area. Just copy and paste this in your run line.

Good Luck and let me know how this goes.
0
 
rclark022197Author Commented:
I had already tried that.  Per my original note,

    Without the quotes around "d:\program files" it tells me I have an invalid parameter (no doubt "files").
--------------------
0
 
gikamCommented:
rclark,
most probably u are running the command from under a DOS program, such as Norton Commander !
0
 
rclark022197Author Commented:
To Gikam, I am running it under NT's "Command prompt", from which you can type
cd program files
and have it work!
0
 
rclark022197Author Commented:
I would prefer an 'answer' which allowed me to use the long name (program files), but in all fairness jminck solved the problem - his suggestion to use the short name worked.  I assume that the long name would be lost on restoration, but changing one path name is a very small price to pay to have it work!

jminck, if you would submit your suggestion as an 'answer', I will award you the 100 points.  Thanx!
0
 
rclark022197Author Commented:
Thanx!
0
All Courses

From novice to tech pro — start learning today.