Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


I do not understand what that would be good for.
Just create the site, export its registry key and import it to the target environment.

Though we do not recommend using stored site in scripting anyway. It leads to maintenance problems eventually.

martin wrote:

No, that solution is to open a session and send files.

I need a script to create the credentials of a site and store them in Registry like the GUI does. (see attached image)

Then when I call that script on a schedule task (running with SYSTEM account), I don't need to pass the user/password, but only the site info (app/app)

I'm automating a manual deployment plan
one of the steps prior to run the following bat script is to create app/app1 site credentials
the script uses app/app1 login that currently is created in WinSCP ui.

My question is can this login be created via commandline?

attached is the login window info with the info that needs to be scripted to be used on my automation

cd C:\Program Files (x86)\WinSCP app/app1 /log="C:\temp\logs_%DATE:/=-%.txt" /command "put -filemask=* H:\EXTRACT\TRANSFER\* -delete" "close" "exit"

how to create an entire login(site) via command promt

Hi all, I'm trying to add a login to winscp via command prompt. But I'm unable to find an waay to do it? it is possible, or sites/user info can only be added in UI Login window?

I need to have it stored to avoid to have the user and password stored in my batch file (I'm building a schedule task to send files every day)