I have some VBA code which is using Putty's pscp.exe file for logging on Unix server. I am using Windows 7.
The problem is that the username includes a @ character. I am not able to login if I use the following VBA code.
So, how should I replace Username = "user@example.xxx"
to be able to login?
Dim Host As String
Host = "grid1.example.xxx"
Dim Username As String
Username = "user@example.xxx"
Dim Password As String
Password = "Password2012"
Dim Command As String
Command = "pscp.exe -sftp -l " & Username & " -pw " & Password
Shell Command, vbNormalFocus