PDA

View Full Version : parameters to batch files (W2K)



doneirik
05-03-2005, 05:51 PM
hi...(hope this is the right forum....)

How do I work with parameters to batchfiles?

I want to write a small batchfile that can do "something" with a file. The filename should be a parameter to the batchfile, e.g. if the batch file is "convert2pdf" I want to write convert2pdf filename.doc and perform the necessary operations on the file.

regards
doneirik

josefz
05-08-2005, 11:59 AM
<a target="_blank" href=http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx>Using batch parameters</a> article explains it for XP, but it will be the same in NT/2K.