xcopy

  • Thread starter Thread starter GO
  • Start date Start date
G

GO

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.
 
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
 
Frank said:
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


Surround the filespec with quotes:

xcopy "C:\Program Files\ACT\Template K:\ACT\Template" /D:6-30-4 /M/Y

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top