|
|
 |
RE: FN-FORUM: XCOPY command - HELP!
date posted 26th May 2006 20:00
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
|
 |
|