View Single Post
Old 04-10-2007, 03:55 PM   #2 (permalink)
StupidScript
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Perhaps this link will be useful to you? http://www.ericphelps.com/batch/

Start with "Sample Batch Files". Don't forget to check out "Using FOR to Process Data Lines", too.

The site also has a link to Batfiles: The DOS Batch File Programming Handbook & Tutorial, which may help.

Regarding your queries, in the first one, you'd want to (1) cd into the directory to catalog, then (2) run a FOR loop including an incrementer for the counting (a bit of a pain, but doable) and then (3) echo your phrase+incrementer+filename, perhaps piping ( > ) the output to a text file.

For the second query, unless your .CFG file is a program, it will be launched using its associated program (probably Notepad, in that case). So you would call to the .CFG file, adding notepad arguments ... one of which might be an argument for setting its window width. You showed this example in your message (assuming MyUtility is a program in your PATH environment). I only know of a couple of basic arguments/switches for notepad that deal with the file to open and how to open it, but none that affect the window instance. Maybe MyUtility can account for those types of switches?

Have fun!
StupidScript is offline   Reply With Quote