Jump to content
Macro Express Forums

Capture DOS command output


Recommended Posts

This worked for me:



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

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


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



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.

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.

  • Create New...