Windows .com Scripted Transfer with Snagit
I am using Snagit to capture the contents of a portion of a screen and then want to invoke WINSCP to transfer the file that was captured. Snagit supports the insertion of a generated file into a command line param passed to another windows exe.
The command line params I am passing to winscp3.exe is as follows:
sftp://uid:pw@server:22 /upload "<CaptureFilename>"
This seems to properly invoke winscp3, and leaves me with a window properly formated and populated for me to confirm a "COPY".
After one click the copy completes, everything closes, and I am happy.
I dont seem to be able to find a way to PREVENT this pop-up and just have the copy happen.
I would prefer NOT to use the scripting and the .com file since its behavior when run in a spawned dos window is less than appealing.
Any suggestions would be greatly appreciated.
Craig
The command line params I am passing to winscp3.exe is as follows:
sftp://uid:pw@server:22 /upload "<CaptureFilename>"
This seems to properly invoke winscp3, and leaves me with a window properly formated and populated for me to confirm a "COPY".
After one click the copy completes, everything closes, and I am happy.
I dont seem to be able to find a way to PREVENT this pop-up and just have the copy happen.
I would prefer NOT to use the scripting and the .com file since its behavior when run in a spawned dos window is less than appealing.
Any suggestions would be greatly appreciated.
Craig