PC Review


Reply
 
 
GO
Guest
Posts: n/a
 
      26th Jul 2004
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



 
Reply With Quote
 
 
 
 
Frank Russo
Guest
Posts: n/a
 
      26th Jul 2004

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
 
Reply With Quote
 
Steve Nielsen
Guest
Posts: n/a
 
      26th Jul 2004
Frank Russo wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xcopy Ted Gervais Windows XP Basics 14 24th Nov 2006 08:11 AM
cannot use xcopy =?Utf-8?B?RGltaXRyaXM=?= Microsoft Windows 2000 3 9th Mar 2006 12:13 PM
SP2 -vs- XCOPY Bill Martin Windows XP Basics 3 12th Oct 2004 02:49 PM
xcopy in xp Dexter Southerland Windows XP Basics 4 20th Jun 2004 05:59 PM
xcopy Rick Microsoft Windows 2000 CMD Promt 5 19th Sep 2003 09:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 PM.