Windows .com Scripted Transfer with Snagit

Advertisement

craig.b
Guest

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Windows .com Scripted Transfer with Snagit

craig.b wrote:

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.
But that's the only way. Parameter /upload is not intended for automation.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum