Batch File to Copy Files

Sunday, September 18, 2011

Batch File can copy files in computer easily. If we can have a good idea, we can develop to make advance batch tool to copy more files quickly. the following is the basic simple code :
copy D:\LearnBatCode.doc E:\
Other example code from directory to other directory on different drive:
copy D:\PrivatDirectory\LearnBatCode.doc E:\NewDirectory
Write it into Notepad, then save it and give .bat extension, example: copyFiles.bat you can combine this code with more batch/cmd code, like a rename files.
Read More..

Auto Shutdown Computer After 3 Hour with Batch

Wednesday, September 7, 2011

It's easy to make computer restart or auto shutdown after 3 hour with cmd code, you just write simple code in batch file. Write down following codes in notepad :

shutdown -s -t 10800 -t “Hi ! This Computer will shutdown After 3 hour”

Save it with .bat extension (ex: Autoshudown.bat ), and run the program with double click on it. The words in quotes is display comment that will be shown when program is running. 10800 is the time for 3 hour (3600=1 hour), you may need read the basic shutdown command
Read More..