Wednesday, December 2, 2009

xcopy command

xcopy command
net use l: /delete
net use l:\\computerName\sharedFolderName passwordForThisMachine
xcopy *.* l:\user\folder /s /m /y --> s is subdirectory; m is modify and y is yes to everything; *.* will copy all the files under current directory. For example, you have *.* in the batch file and your batch file is saved under user folder then all your files in the user folder will be copied accross. Alternatively, you can just specify the full path.
pause

No comments:

Post a Comment