Dos Help for Batch Files 1
| To copy a file: XCOPY "C:\utils\MyFile" "D:\Backup\CopyFile"
|
| To copy a folder: XCOPY "C:\utils" "D:\Backup\utils" /i To make a batch file which copies and pastes a file to a different directory, use the code above. "utils" being the folder you wish to copy and "Backup" is the name of the directory the folder will be pasted to. If this code does not work, the PATH is wrong! If the folder contains sub directories, and you wish to copy the sub directories, then you would use this code instead XCOPY C:\utils\* D:\Backup\utils /s /i |
To make a directory
The following code is used to make a directory. The c:\ will be the location of the new directory and Test will be the name of the new directory. A full path can written in place of c:\
mkdir\\.\c:\Test
To Delete A Directory and the files within
| To delete a directory RMDIR "C:\FolderToDelete" /s /q To delete a directory enter this code into the batch file. |
To Display the amount of Hard Drive Space used by MS Vista
|
To display
the Windows Vista System Restore Allocation, use this code. vssadmin list shadowstorage you will also need to add this code pause ,befor hitting the Enter key, to halt the program so you can read it! |
To Change the amount of Hard Drive Space used by MS Vista
|
To change the
Windows Vista System Restore Allocation, use this code. vssadmin resize shadowstorage /On=C: /For=C: /Maxsize=2GB The 2 can be be changed in the above code to a quantity of gigabites of your choice. MORE SOON! |