Create batch files
We may create a batch file to facilitate our job. For example, cleaning temp files, shutdown computer with only one push, refresh&change ip/gateway ex... We must know MS-DOS commands to do them.
At first, this's short information before how to do that. Batch files are not applications, these're command series which exetuces more then one MS-DOS commands.
Now, this's instruction for how to create batch file;
1- Open Notepad by this way start/programs/accessories/notepad.exe
2- Write command series which you want execute.
Example:
@echo off
xcopy C:\data\*.*/s d:\backup
3- Go to File tab and push save as. Now you should define a name and extension. The most important step is, you should give an extension to this file as ".bat".
Exp.: backup.bat
4- You can see below there's several Save as types. Please choose All Files and save by save button.
That's all. When you execute this file, it'll start to copy C:\data content to D:\backup folder.
- 0 Comment
- Emrah Doğan
- 22 Sep 2008, 13:57
-
You must be login first or sign-up for an account to post comments.
