Excellent.
I'm learning stuff about Windows batch files by looking at it. Since, like you, I normally just write Unix/linux shell scripts (e.g. bash), writing batch files for Windows usually only comes up for me when I want to help someone here and need a way to translate something I already know how to do in linux to Windows. This will be very helpful.
I guess the only downside to your method, however, is that since it needs to be passed arguments, you can't tell someone just to cut and paste into Notepad, save and double click the icon -- the people actually have to go to the command prompt and navigate to the appropriate folder. Not really a difficult concept for those of us who remember DOS, or use UNIX/linux where this is relatively commonplace, but a number of Windows users who come here looking for help are often intimidated by doing anything through a command line interface, unfortunately.
(Though I suppose you could just make two batch files, with one calling the other if need be.)
Last edited by frabjous; 03-05-2010 at 12:30 PM.
|