Jump to content
Macro Express Forums

Function To Run Command Line Util?


cbv

Recommended Posts

Hello cbv!

 

You can run a batch file from Macro Express using the Program Launch command. In order to trap what your batch file outputs, have it create a file, in a known location, that is named something like 0.txt, or 1.txt, and so forth. Attached is a sample DOS batch file that simply creates a file named testout.txt when it is run. I've also attached a sample playable macro.

Delay 250 Milliseconds
Variable Set String %T1% "c:\pgm3\output\testout.bat"
Variable Set String %T2% "c:\pgm3\output\testout.txt"
If File Exists "%T2%"
 Delete File or Files: "%T2%"
 Delay 500 Milliseconds
End If
Program Launch: "%T1%"

CreateFileUsingEcho.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...