"/Command" not working

Advertisement

vikas21
Joined:
Posts:
3
Location:
Vikas21

"/Command" not working

Hi,
The following command is not working.
winscp.exe ftp://myftpserver:pwd@ftpserver /command "get 11052008.txt" "exit"

It is doing nothing. Am I doing something wrong above.
My requirement is to use the WINSCP programatically. We want to copy a file from the ftp location to our machine.
Is there any way to do it?
I don't want to use the graphical or the command prompt option.

regards
Vikas

Reply with quote

Advertisement

vikas21

Re: "/Command" not working

Now when this command is working, I am able to get the file, but when the same command is repeated then it doesn't overwrite the existing file already present.
Is there any "force" parameter that we can specifiy ? when "GET" is used.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: "/Command" not working

vikas21 wrote:

Now when this command is working, I am able to get the file, but when the same command is repeated then it doesn't overwrite the existing file already present.
Is there any "force" parameter that we can specifiy ? when "GET" is used.
Please read documentation. If that does not help, come back.

Reply with quote

Advertisement

You can post new topics in this forum