Calling .exe with Run
- To: mathgroup at smc.vnet.net
- Subject: [mg66102] Calling .exe with Run
- From: Marco Gabiccini <m.gabiccini at ing.unipi.it>
- Date: Sat, 29 Apr 2006 03:41:04 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Maybe this is not exactly what you meant to do but here is my example for you.
This is just a call to cmd.exe to see, in the DOS window, the files in the
directory C:\Marco.
SetDirectory["C:\Marco"]
batfilecontent = ToString[ColumnForm[
{"cd\\","dir/p"}, Left]
];
Export["call.bat", batfilecontent, "Table"]
Run["call.bat"]
I hope this helps.
Marco Gabiccini
- Follow-Ups:
- Re: Calling .exe with Run
- From: Shyam Guthikonda <shyamguth@gmail.com>
- Re: Calling .exe with Run