Issue with Space in Local Deirectory listing

Advertisement

jbalajkpm
Joined:
Posts:
4
Location:
India

Issue with Space in Local Deirectory listing

Hi,

Here's the script which i use with VB, this can also be copied and executed directly in ordinary Command line (not in WinSCP.com)

C:\>"C:\Program Files\WinSCP\WinSCP.com" /console /command "Open UserXXX:password@sftp.xxx.com" "CD FTP/REMO/REMOTE_DIRECTORY" "Put -delete -nopermissions -preservetime "G:\Bala\FileNet DR Process\Checklist2.zip"" "close" "exit" "/log=c:\winscp.log"

And im getting the error

File or folder 'G:\Bala\FileNet' does not exist.
System Error. Code: 2.
The system cannot find the file specified


can anyone provide me a suggestion in this.

Thanks,
Bala

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Issue with Space in Local Deirectory listing

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

jbalajkpm
Joined:
Posts:
4
Location:
India

Re: Issue with Space in Local Deirectory listing

jbalajkpm wrote:

martin wrote:

Please read documentation. If that does not help, come back.

Provided article did not help.

can you think of something which might be missing here. Please assist

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Issue with Space in Local Deirectory listing

jbalajkpm wrote:

Provided article did not help.
So what the article did not help you with?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,252
Location:
Prague, Czechia

Re: Issue with Space in Local Deirectory listing

jbalajkpm wrote:

this is the article i'm referring to
https://winscp.net/eng/docs/scripting#quotes
I know. I ask, what part of the article you do not understand, or what part of it does not work for you.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum