gbmolina Posted February 7, 2008 Share Posted February 7, 2008 hi, I'm trying to make a bat file that will backup my documents with a single click to a specified location, please tell me if the /exclude switch of the xcopy command is used correctly. (the idea is to copy everything except the "filmi" and "downloads" directories.Also, do all operations wait for each other to complete? I.e., will the shutdown command be carried out after all files (except the above mentioned directories) are copied?@ECHO ON:STARTXCOPY D:\ "G:\" /Y /E /EXCLUDE: D:\filmi\+D:\downloads\shutdown -s -t: 0thanks Link to comment Share on other sites More sharing options...
IcemanND Posted February 7, 2008 Share Posted February 7, 2008 It looks right but you should remove the space between EXCLUDE: and D:\filmi Link to comment Share on other sites More sharing options...
schwindt14 Posted February 7, 2008 Share Posted February 7, 2008 And yes, the shutdown will not execute until the previous commands complete. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now