WinSCP.com opens wrong site, ignoring config & script

Advertisement

rodfun
Donor
Joined:
Posts:
5

WinSCP.com opens wrong site, ignoring config & script

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.
Thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: WinSCP.com opens wrong site, ignoring config & script

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-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.

Reply with quote

rodfun
Donor
Joined:
Posts:
5

WinSCP.com script opens wrong host in batch mode

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.
  • temp.log (2.33 KB, Private file)

Reply with quote

rodfun
Donor

WinSCP.com script opens wrong host in batch mode

Never mind. I figured it out from the log.
Wrong script called. I had two with similar names.
Sorry.

Reply with quote

Advertisement

You can post new topics in this forum