merctwister
Technical User
How would I use xcopy to exclude all .bak files in a
folder.
I was in my folder that I wanted to copy.
I wanted to copy all the the files in my folder
C:\Data (except the .bak files) to another Folder C:\Backup
I tried this:
C:\Data>Xcopy *.* C:\Backup /h/r/exclude:*.bak
but it still copied the .bak files to the C:\Backup
folder...what did I do wrong???
folder.
I was in my folder that I wanted to copy.
I wanted to copy all the the files in my folder
C:\Data (except the .bak files) to another Folder C:\Backup
I tried this:
C:\Data>Xcopy *.* C:\Backup /h/r/exclude:*.bak
but it still copied the .bak files to the C:\Backup
folder...what did I do wrong???