Post a reply

Options
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)

Options

Topic review

martin

Re: asked for a PW using PW WinSCP with INI

Is this indeed the command you are running?
It shouldn't do anything, not even start the session. You are missing /command switch before "open ....":
winscp.exe /ini="C:\myFolder\WinSCP.ini" /command "open req89044225@sftp.myco.biz" "put \\servername\C$\Temp\Output\*.txt " "exit".
sido

asked for a PW using PW WinSCP with INI

Hello,

I have a bat file calling winscp, which works perfectly with my credentials, but not from scheduler as it runs under a diff user, so I followed instructions of exporting my sessions settings to INI file. The bat file was modified to contain the following:

winscp.exe /ini="C:\myFolder\WinSCP.ini" "open req89044225@sftp.myco.biz" "put \\servername\C$\Temp\Output\*.txt " "exit".

I d-click the bat file to test, the sessions is opened but I keep getting dialog box to enter PW. What am I doing wrong? I can see encrypted PW in the INI file.

Thanks in Advance!