Is there any way to run a dos internal command, like DIR *.TXT from the command prompt?
I'm not talking about using GetFileList instead, or to write a batch file and run that. I'm wondering if MS can execute dos internal commands directly.
Thanks
Running DOS Internal commands - SOLVED
Moderators: JRL, Dorian (MJT support)
Running DOS Internal commands - SOLVED
Last edited by mightycpa on Fri Jan 20, 2017 4:09 pm, edited 1 time in total.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Running DOS Internal commands
Sure. Use the Run command:
Code: Select all
Let>RP_WAIT=1
Run>cmd.exe /c dir c:\*.txt >> "%TEMP_DIR%\temp.txt"
ReadFile>%TEMP_DIR%\temp.txt,allText
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Running DOS Internal commands
Too simple! Didn't think of that, thanks.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia
- Dorian (MJT support)
- Automation Wizard
- Posts: 1416
- Joined: Sun Nov 03, 2002 3:19 am
Re: Running DOS Internal commands - SOLVED
Definitely! DOS is still alive!CyberCitizen wrote:Yes I use this alot, very handy.
