[Binari] DOS scripting

anybody up for some scripting in MS-DOS ? L. -- ============================================================== Lieven Sterck, PhD Tel:+32 (0)9 3313821 Fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, UGent Bioinformatics and Evolutionary Genomics Division Technologiepark 927, B-9052 Gent, Belgium Email: lieven.sterck@psb.ugent.be Website: http://bioinformatics.psb.ugent.be -------------------------------------------------------------- Algal Genetics Group UMR 7139 CNRS-UPMC Végétaux Marins et Biomolécules (Marine Plants and Biomolecules) Station Biologique Place Georges Teissier, BP74 29682 Roscoff Cedex, France Website: http://www.sb-roscoff.fr/UMR7139/en/genetics.html ============================================================== "Facts are meaningless. You could use facts to prove anything that's even remotely true!" H. Simpson

NO! lieven sterck wrote:
anybody up for some scripting in MS-DOS ?
L.
-- ================================================================== Sofie Van Landeghem PhD Student VIB Department of Plant Systems Biology, Ghent University Bioinformatics and Evolutionary Genomics Technologiepark 927, 9052 Gent, BELGIUM Tel: +32 (0)9 331 36 95 fax:+32 (0)9 3313809 Website: http://bioinformatics.psb.ugent.be ==================================================================

Depends, what do you want to do? lieven sterck wrote:
anybody up for some scripting in MS-DOS ?
L.
-- ================================================================== Michiel Van Bel PhD student 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 mibel@psb.ugent.be http://www.psb.ugent.be ==================================================================

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 ==================================================================

want to execute a command for a whole list of files in a dir. L. Michiel Van Bel wrote:
Depends, what do you want to do?
lieven sterck wrote:
anybody up for some scripting in MS-DOS ?
L.
-- ============================================================== Lieven Sterck, PhD Tel:+32 (0)9 3313821 Fax:+32 (0)9 3313809 VIB Department of Plant Systems Biology, UGent Bioinformatics and Evolutionary Genomics Division Technologiepark 927, B-9052 Gent, Belgium Email: lieven.sterck@psb.ugent.be Website: http://bioinformatics.psb.ugent.be -------------------------------------------------------------- Algal Genetics Group UMR 7139 CNRS-UPMC Végétaux Marins et Biomolécules (Marine Plants and Biomolecules) Station Biologique Place Georges Teissier, BP74 29682 Roscoff Cedex, France Website: http://www.sb-roscoff.fr/UMR7139/en/genetics.html ============================================================== "Facts are meaningless. You could use facts to prove anything that's even remotely true!" H. Simpson

lieven sterck schreef:
want to execute a command for a whole list of files in a dir.
See answer... T.
Michiel Van Bel wrote:
Depends, what do you want to do?
lieven sterck wrote:
anybody up for some scripting in MS-DOS ?
L.
-- ================================================================== 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 ==================================================================
participants (4)
-
lieven sterck
-
Michiel Van Bel
-
Sofie Van Landeghem
-
Thomas Van Parys