Windows Batch File Looping Through Directories to Process Files? Okay, I am a PHP programmer and unfortunately, for reasons I will not announce for brevity, I need to write/use a batch file that processes some imagery for me. I have one folder full of nested folders, inside each of these nested folders is one more folder that contains a number of TIF images, the number of images vary in each folder. I also have a batch file, lets call it Process. Images. bat for Windows that you can "drop" these TIF files on (or obviously specify them in a command line list when invoking the bat); upon which it creates a new folder with all my images process based on an EXE that I have. The good thing is that because the bat file uses the path from the folders you "drop" onto it, I can select all the TIFs of one folder and drop it to do the processing.. Variants DOS. In MS-DOS, a batch file can be started from the command line by typing its name followed by any required parameters and pressing the 'enter' key. When MS-DOS loads, the file AUTOEXEC.BAT is automatically executed. I have about 50 or so Excel workbooks that I need to pull data from. I need to take data from specific cells, specific worksheets and compile into one dataset (preferably into another excel workboo. I continue to manually do this for the 3. TIFs I have I find it bogs my system down so unbelievably and if I could only process these one at a time (without manually doing it) it would be wonderful. All that said.. could someone point me in the right direction (for a Windows bat file AMATEUR) in a way I can write a Windows bat script that I can call from inside a directory and have it traverse through ALL the directories contained inside that directory.. Thanks in advance!
A Windows Batch File Programming Primer v1.0.3 / 01 apr 16 / greg goebel * The Microsoft Windows operating system provides a useful tool for customizing the operation of a PC computer, known as 'batch file' programming. Batch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2016
Categories |