A bit of macro code I run on some files. It posts the code to #FileOut with predefines SMF and TMP files, then runs a VBScript on the file.
I did this because there were always a few little things with the output that I could not get fixed with the post, so I scripted it in VBScript. It just turned out to be a bit easier to get those last few items fixed via RegEx replace statments in VBScript.
Code:
CODE[FN=#FileOut, MS1="Z:\\Smartcam\\Amsmf\\MachineFile.SMF",
MT1="Z:\\Smartcam\\Amsmf\\MachinePost.TMP",
SH=0, DC=0, ST=0, DT=0, SP=5]
SHELL[CMD_LN=STRTMP("WScript.exe \"Z:\\Scripts\\Clean_Code.wsf\" \"%#FileOut\" -Quiet"), WA=0, DP=0]