Topic "asked for a PW using PW WinSCP with INI"

Author Message
[View user's profile]

Joined: 2011-12-07
Posts: 1

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" "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!
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
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" "put \\servername\C$\Temp\Output\*.txt " "exit".
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License