I believe wrapping the string in quotes will help (eg: "C:\Documents and
Settings\frank\My Documents\"). Also you could use the 8.3 naming
convention. To view a files "8.3 name" type "dir /x" at the command prompt.
"Frank Russo" <(E-Mail Removed)> wrote in message
news:465f01c4734c$f6f66c70$(E-Mail Removed)...
>
> How do I get around problem that xcopy does not recognize
> file names with a space in it? -- error invalid parameters
>
> Note - I removed the command modifiers to see if it was
> them but was not.
>
> e.g.
>
> xcopy C:\Documents and Settings\frank\My Documents\ K:\My
> Documents\ /T/E/Y
>
> xcopy C:\Documents and Settings\frank\Favorites
> K:\Favorites /T/E/Y
>
> xcopy C:\TEMP K:\TEMP /T/E/M/Y <<<<< This one works
>
> xcopy C:\Program Files\ACT\Template K:\ACT\Template /D:6-
> 30-4 /M/Y
>
> I wanted to use xcopy in a batch file to schedule selected
> backups.
>
> Frank
> NC
|