|
|
 |
Re: FN-FORUM: XCOPY command - HELP!
date posted 26th May 2006 20:17
Yes, sorry, you need quotes round paths with spaces in them. Although you
can cd without quotes, you can't xcopy.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Kathy
http://www.vendetta.co.uk
+44(0)7005 982 261
DNRC Minister for Useful but Irritating Information and Trivia
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
----- Original Message -----
From: "Dai Williams" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Friday, May 26, 2006 9:02 PM
Subject: RE: FN-FORUM: XCOPY command - HELP!
>
> Thomas wrote:
> > Can anyone shed any light on what this xcopy command doesn't work by
> > any chance? I've never used this before so really ain't got a clue
> > what I'm doing wrong here.
> >
> > xcopy G:\My Documents\*.* C:\Documents and Settings\Admin\My
> > Documents\ /E /D /R /Y
> >
> > I've saved this in a txt file as both .cmd and .bat extensions,
> > double-clicked it which opens the command window very briefly but no
> > files
> > have been updated, I've tried everything I can think of, what am I
> > doing
> > wrong!?
>
> DOS eh? Long time since I dabbled with my all time favourite OS ;)
>
> Well I would open a command prompt first then run the batch file, that way
> you will see any error messages, however off the top of my head I would
say
> the problem is the spaces in the directory name, you will either have to
> quote the parameters using
>
> xcopy "G:\My Documents\*.*" "C:\Documents and Settings\Admin\My
Documents\"
> /E /D /R /Y
>
> Or possibly even use the 8.3 name formats which would be something like
>
> xcopy G:\DOCUME~1\*.* C:\DOCUME~1\Admin\MYDOCU~1\ /E /D /R /Y
>
> You can get vthe 8.3 names using dir /x
>
> HTH,
>
> Dai
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|