Using WinSCP Version 5.6.5 RC (Build 4982)
I can use WinSCP.com to connect to my host successfully at the command line.
But when I run a batch file, it trys to connect to an old FTP site that is no longer configured in WinSCP. I deleted it.
It seems to ignore my batch file commands: "C:\Program Files (x86)\WinSCP\winSCP.com" /script=HHSiteUpdate.txt
It attempts to connect to a site not referred to in that txt file, as I said the old site I was using.
I checked WinSCP.ini and it only has the correct site listed.
I checked for other copies of WinSCP.ini.
I made sure it loads the WinSCP.ini from the C:\Program Files (x86)\WinSCP
It doesn't matter if I use /ini= even with a unique ini file name.
Can't figure it out.
Any help or advice appreciated.
Please attach a full log file showing the problem (using the latest version of WinSCP).
To generate log file, use /log=path_to_log_filecommand-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Thanks, Here is the log.
It ignores the script HHSiteBackUp.txt which is in the current working directory. If I enter the script line by line it works fine. But its selecting this old FTP site IP 162..., and I can't see where that's coming from.