Ernesto
asked on
how to exlude some extensions to a xcopy in bat
Hi i have a bat that put me all the new files to an external 2 TB usb disk
i been infected by ranscrypto and i want to exclude of my backup the .HLUTBTE extension
is any way to achive that in my .bat file
my bat file is like
echo on
xcopy d:\ H:\ /s /e /D /Y /C
tsm you experts
regards edo
i been infected by ranscrypto and i want to exclude of my backup the .HLUTBTE extension
is any way to achive that in my .bat file
my bat file is like
echo on
xcopy d:\ H:\ /s /e /D /Y /C
tsm you experts
regards edo
Will is right but however I couldn't make it work this way. So I used a text file with all the extensions that needed to be excluded and used the EXCLUDE flag like this instead;
/EXCLUDE:Drive:\exclusionF ileName.tx t
/EXCLUDE:Drive:\exclusionF
ASKER
Pelase put it in my bat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
exclude do not acept *.hlutubte
error
cant read *.hlutubte
regards
error
cant read *.hlutubte
regards
ASKER
Tsm
regards!!!
regards!!!
Open in new window
Below is the exact help from xcopy /?
Will.