xcopy "path"*.*

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Matice
Posts: 14
Joined: 14 Nov 2006 02:48

xcopy "path"*.*

#1 Post by Matice » 08 Oct 2008 01:26

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

greenfinch
Posts: 36
Joined: 17 Jul 2008 07:37

#2 Post by greenfinch » 14 Oct 2008 08:15

Quotes around long filenames need to enclose the whole thing:

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

Matice
Posts: 14
Joined: 14 Nov 2006 02:48

#3 Post by Matice » 15 Oct 2008 00:14

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*

Post Reply