Jump to content
Macro Express Forums

Capture DOS command output


Steve
 Share

Recommended Posts

This worked for me:

DOSCommandSample.PNG.7591c49adc3ea9eacdd91264cfb74f20.PNG

 

The /c parameter tells cmd.exe to close after running. %TEMP% points to the temporary folder.

 

You could also put commands in a batch file

c:
cd %TEMP%
dir > %TEMP%\DirCmd.txt

 

and use the Program Launch command to run the batch file.

DOSCommandSample2.PNG.28ce4e88a89ce704024b9895301393dd.PNG

 

And then, as rberg said, load the file into a macro via a 'Variable Set String %T1% from File' command or the Text File Begin process command.

 

 

  • Like 1
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...
 Share

×
×
  • Create New...