Topic "password with @"

Author Message
rpolichetti
[View user's profile]

Joined: 2012-02-24
Posts: 1
Location: CA
While using this template:
sftp://martin:mypassword@example.com

the password I'm trying to use has the @ symbol which is confusing the parser.
Can the password be quoted or the @ in the password be escaped or something else?
Richard
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/session_url
_________________
Martin Prikryl
Alexyau

Guest


I read the link and understood that special character needed to be replaced by %XX where XX is hexadecimal ASCII code.

I tried to connect to the FTP server(Windows 2008) and the user name is abc-dms\ABCDE. I have tried abc%2Ddms%5CABCDE and abc-dms%5CABCDE but both didn't work.

Any other suggestion?

Alex
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Actually there's no need to encode nether \ nor -.
So the problem has to be elsewhere.
Please post a full log file showing the problem.
_________________
Martin Prikryl
Alexyau

Guest


First, I am running the script in command-line.

For example, running test.bat to run test.txt.

test.bat: winscp /console /script=c:\test.txt

test.txt:

option batch abort
option confirm off
open pcn-dms\DCN020A004:12345@site
cd /test_transfer_log
lcd C:\New_DMSInterface_Test\LOG
get -delete *.*
cd /test_transfer
lcd C:\New_DMSInterface_Test\PROCESSED
get -delete *.*
close
exit

BTW, how I can get the full log file if I run the script in command-line mode.

Alex
Alexyau

Guest


As suggested, I found the /log option, added to the command line and reviewed the log.

The problem was the default protocol was using SFTP while my remote server was using FTP. So I have added "ftp://" in the open command and it worked.

Thanks very much for your assistance and WinSCP is indeed a great product.

Alex
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