I have a mapped network drive that I want the entire contents of copied to a flash drive.
rem copy individual files
xcopy "Z:\*.*" E:\ /d /r /y
rem copy document trees
xcopy "Z:\" E:\ /d /i /s /r /y
and it seems to be working ok for the copying of files and folders, but I want to format the drive first each time I run the script.
it's a 16GB drive that is currently NTFS. Is there a way to automate the format so no user intervention is required? (ie. pressing enter)
If possible, I'd also like it to output success or failure to a text file on the desktop...?