2006-11-22

Batch parameters

To see all the parameters in action, put them into the batch file testing.bat, as follows (NOTE: the tilde character strips the eventual quotes that might be around of the parameter):

Then, run the file with a long filename. For example, the batch file run on the file c:\temp\longfilename.long would produce the following output:
For more information about how to process strings in a batch file, visit: http://www.dostips.com/DtTipsStringManipulation.php (great reference).

No comments:

Post a Comment