Difference between revisions of "Compiling:Batch Files"
(→The %1 variable) |
(→The %1 variable) |
||
Line 4: | Line 4: | ||
[http://en.wikipedia.org/wiki/Batch_file Batch Files] are files with one or more command line. Batch files are often used to add surface sounds and bot's. But they can manage the same as a frontend. | [http://en.wikipedia.org/wiki/Batch_file Batch Files] are files with one or more command line. Batch files are often used to add surface sounds and bot's. But they can manage the same as a frontend. | ||
+ | |||
+ | ==Batch Files== | ||
===The %1 variable=== | ===The %1 variable=== | ||
The %1 variable can be very usefull when making a batch file. Instead of a path to the file you want to work with you can simply use %1. This allowes you to work with the file that are droped on the batch file. | The %1 variable can be very usefull when making a batch file. Instead of a path to the file you want to work with you can simply use %1. This allowes you to work with the file that are droped on the batch file. | ||
− | <div id="BatchFilesEg" style="border:2px #999999 dotted; background-color:#dddddd; padding:10px; width: | + | ===Example X=== |
+ | Insted of writing the path to the image you want to open with mspaint you can simply put %1 insted. When you drag and drop a image on the batch file it will open the image with mspaint. | ||
+ | <div id="BatchFilesEg" style="border:2px #999999 dotted; background-color:#dddddd; padding:10px; width:; left:50px;"> | ||
+ | =====Eg MsPaint===== | ||
mspaint %1 | mspaint %1 | ||
</div> | </div> | ||
[[Category:Compiling]] | [[Category:Compiling]] |
Revision as of 09:34, 19 August 2011
Batch Files
About
Batch Files are files with one or more command line. Batch files are often used to add surface sounds and bot's. But they can manage the same as a frontend.
Batch Files
The %1 variable
The %1 variable can be very usefull when making a batch file. Instead of a path to the file you want to work with you can simply use %1. This allowes you to work with the file that are droped on the batch file.
Example X
Insted of writing the path to the image you want to open with mspaint you can simply put %1 insted. When you drag and drop a image on the batch file it will open the image with mspaint.
Eg MsPaint
mspaint %1