无法在命令提示符下访问WinScp,但可以在Windows屏幕中访问. [英] cannot access WinScp in the Command prompt but can access in the windows Screen.

查看:237
本文介绍了无法在命令提示符下访问WinScp,但可以在Windows屏幕中访问.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在WINSCP的Windows模块中,我可以访问,复制和删除远程目录中的文件.但是在命令提示符下,我尝试访问可以在WINSCP Windows模块中访问的相同的远程目录,但收到此错误:网络错误.连接被拒绝."

请帮我做什么?

事先非常感谢.

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.

推荐答案

next-next-finish主要使用默认值安装了非beta版本,并检查了它们是否已在%PATH%上注册(已验证,确定),并且处理sftp://和scp://地址.升级到Beta进行完全升级(推荐),并且两个可执行文件都在C:\ Program Files \ WinSCP上.
它是Windows 2008 Server Standard SP2(不是R2).



winscp.com
COM可执行文件是一个简单的工具,可在内部运行winscp.exe并为其提供控制台界面.
您可以使用它做什么:
仅支持控制台模式,但允许输入/输出重定向;
从另一个控制台应用程序(例如标准Windows控制台/命令行窗口,即cmd.exe)运行时,它将继承其console1).
从Windows Shell(即cmd.exe或批处理文件)运行时,Shell等待WinSCP完成.这样就可以检查WinSCP退出代码.
COM可执行文件需要EXE才能运行.它在它本身所在的目录中查找它. EXE名称必须完全相同.

输入/输出重定向
对于输入/输出重定向,请使用标准运算符:
>用于输出重定向;
<用于输入重定向;
|用于管道.
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.


这篇关于无法在命令提示符下访问WinScp,但可以在Windows屏幕中访问.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆