Topic "WinSCP.com opens wrong site, ignoring config & script"

Author Message
rodfun
[View user's profile]
Donor
Joined: 2015-01-23
Posts: 5
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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.
rodfun
[View user's profile]
Donor
Joined: 2015-01-23
Posts: 5
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

Description: (none)

rodfun
[View user's profile]
Donor
Joined: 2015-01-23
Posts: 5
Never mind. I figured it out from the log.
Wrong script called. I had two with similar names.
Sorry.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Thanks for sharing your solution.
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License