Topic "Windows .com Scripted Transfer with Snagit"

Author Message
craig.b

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24554
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License