Execute commands directly from Command line

Need new test, action, option? Post request here.
Post Reply
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Execute commands directly from Command line

Post by Kapz »

Hi !

When using action "Execute external program" I can specify a file in the "Command line" field - e.g. test.bat

If test.bat contains

echo Test1234 > MyFile.txt

- I'll end up with a MyFile.txt containing Test1234 when HM has executed it's action.

It would however often save quite a few .bat files for me if I could specify the commands directly in HM's "Command line" field. Currently I call various .bat files with a lot of HM macros but most of the .bat files only echos these values into simple text files.

Beeing able to write

echo "%TestName" "%SimpleStatus%" > SomeFile.txt

- directly in the "Command line" field would be very nice.

Kasper :O)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Use command like
cmd /c echo "%TestName" "%SimpleStatus%" >SomeFile.txt

Regards
Alex
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Post by Kapz »

Thank you :D

Kasper :O)
Post Reply