Topic "Automating WinSCP"

Author Message
StooJ

Guest


I use WinSCP to connect to my fileserver, and was hoping to let a co-worker upload files to it.

The account I have set up has limited access.

However, I'll need to make something that is fairly idiot-proof.

I tried to create an executable that generates a script and then runs WinSCP with the script.

I found that this doesn't work though, WinSCP has this behaviour disabled as a security measure.

Is there some way around this? A whitelist of scripts or locations? Is there another way to script something with variables (the files will not always be located in the same place on the co-worker's hard drive, so I need to build in a "browse" bit.

Any help, or pointers about where to begin would be greatly appreciated. Many thanks.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Way around what? What behaviour do you mean?
_________________
Martin Prikryl
StooJ

Guest


A way of allowing WinSCP to run a script, but one that is called from another programme. The only way I can get it to work at the moment is to type it into the command prompt manually.

I have an executable file that lets the user pick a directory, then it generates a WinSCP script to connect to a specific server with a specific username and password and synchronize the chosen directory with one on the server.

It doesn't work though. WinSCP won't take a script file when it's not called manually.

Sorry if I'm not explaining this very well Sad
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
StooJ wrote:
It doesn't work though. WinSCP won't take a script file when it's not called manually.

Well it should work. But as I do not know how to your run WinSCP, with what parameters and what script it is hard to tell what's going wrong.
_________________
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