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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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