Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In WINSCP's Windows Module, I can access, copy and delete files in the remote directories. But in the command prompt, I tried accessing the same remote directories i can access in WINSCP windows module but got this error : "Network error. Connection refused."

Please help me on what to do?

Many thanks in advance.
Posted

1 solution

The non-beta were installed by next-next-finish mostly using defaults, checked to register on %PATH% (verified ok) and to handle sftp:// and scp:// addresses. Upgraded to beta doing a full upgrade (recommended), and both executables are on C:\Program Files\WinSCP.
It is a Windows 2008 Server Standard SP2 (not R2).



winscp.com
The COM executable is a simple tool that internally runs winscp.exe and provides console interface for it.
What you can do with it:
Supports console mode only, but allows input/output redirection;
When run from another console application (such as standard Windows console/command-line window, i.e. cmd.exe), it inherits its console1).
When run from Windows shell (i.e. cmd.exe or batch file), the shell waits for WinSCP to finish. So you can then check for WinSCP exit code.
The COM executable needs the EXE one to operate. It looks for it in the same directory where it is located itself. The EXE must have exactly the same name.

Input/Output Redirection
For input/output redirection use standard operators:
> for output redirection;
< for input redirection;
| for piping.
 
Share this answer
 
v2
Comments
SoMad 6-Apr-13 1:09am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900