Running Multiple Commands using Cmd

The best way to do this is either using the “appendfile” or “createfile” Action Script commands then run it as a batch file.

appendfile cd \
appendfile dir > test.txt
appendfile whoami >> test.txt
move __appendfile test.bat
wait cmd.exe /C test.bat

OR

createfile until THISISTHEEND
cd \
dir > test.txt
whoami >> test.txt
THISISTHEEND
move __createfile test.bat
wait cmd.exe /C test.bat
1 Like