Page 1 of 1

xcopy "path"*.*

Posted: 08 Oct 2008 01:26
by Matice
greetings

back here since a long time. im stuck on something simple and stupid.
i need to copy files from source to destination in the following manner:

xcopy /s /e /c /f "C:\Program Files\Debugging Tools for Windows (x86)\"Crash_Mode*.* c:\mydir\dump

but it just fails..

any tips on how to get it to work?

regards
matice

Posted: 14 Oct 2008 08:15
by greenfinch
Quotes around long filenames need to enclose the whole thing:

"C:\Program Files\Debugging Tools for Windows x86)\Crash_Mode*.*"

Posted: 15 Oct 2008 00:14
by Matice
nope sorry its not working...
otherwise i wouldnt have asked in the first place ..

to be more precise

xcopy /e /v /c /f /h /y "C:\Program Files\Debugging Tools for Windows (x86)\Crash_Mode*" c:\my\tmpdump

it copies files from the root dir that start with Crash* but does not copy directories that start with Crash*