Jump to content

help with ms dos commands


Recommended Posts

Posted

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
:START
XCOPY D:\ "G:\" /Y /E /EXCLUDE: D:\filmi\+D:\downloads\
shutdown -s -t: 0

thanks


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...