Link to home
Start Free TrialLog in
Avatar of rclark022197
rclark022197

asked on

"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.
Avatar of gikam
gikam

check the order of parameters
try c:\progra~1
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.
Avatar of rclark022197

ASKER

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").
--------------------
rclark,
most probably u are running the command from under a DOS program, such as Norton Commander !
To Gikam, I am running it under NT's "Command prompt", from which you can type
cd program files
and have it work!
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!
ASKER CERTIFIED SOLUTION
Avatar of BlackMan
BlackMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanx!