Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: WinSCP.com script opens wrong host in batch mode

Thanks for sharing your solution.
rodfun

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

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

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

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.