
Michiel Van Bel schreef:
Depends, what do you want to do?
lieven sterck wrote:
anybody up for some scripting in MS-DOS ?
To run a directory of files trough a program, I'd do something like this. The syntax is slightly uncomfortable, but it should do the job. @ECHO OFF set dir=%1 cd %dir% for %%X in (*.*) do theprogram.exe %%X save this in a file called myscript.bat here you assume that the program can be started with a file as parameter of course. make sure the program you want to run is in your PATH (set PATH=%PATH%;C:\path\to\theprogram.exe). run the batch file as myscript.bat C:\directory\with\files This is untested and the last time I wrote a DOS-batch file, I believe I was 10. So no guarantees. T. -- ================================================================== Thomas Van Parys Tel:+32 (0)9 331 36 95 fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, Ghent University Technologiepark 927, 9052 Gent, BELGIUM thomas.vanparys@psb.ugent.be http://bioinformatics.psb.ugent.be ==================================================================