gpt4 book ai didi

windows - Windows 中的 cwrsync 未被识别

转载 作者:可可西里 更新时间:2023-11-01 09:45:15 25 4
gpt4 key购买 nike

我正在尝试从 mac 环境转移到 windows 环境并需要 rsync。

找到 cwrsync @ http://www.rsync.net/resources/howto/windows_rsync.html

我已经很好地安装了 cwrsync 程序,我可以在 cmd 中调用 rsync,但是在包含 sync.exe 的目录中调用 rsync

在命令提示符下,如果我在不在相关目录中时调用 rsync,它会呻吟并说:

"rsync" is not recognised as an internal or external command, operable program or batch file.

有没有办法将 rsync.exe 添加到全局列表,以便在其直接父目录之外识别 rsync?

谢谢,约翰

rsync not working.

最佳答案

在Windows系统变量中添加路径:

- Control Panel -> System -> tab Advanced, button Environment Variables.
- Edit the "Path" system variable and add the full path to the installed rsync:
C:\Program Files\cwRsync\bin or C:\cygwin\bin. or
C:\Program Files (x86)\cwRsync\bin or C:\cygwin\bin.

这样,rsync 和 ssh 命令应该可以从任何目录运行。确保您为应用程序输入了正确的安装路径,否则它将无法运行。请参见下面的屏幕截图:

环境变量设置:确保你添加的路径在系统变量下:

enter image description here

命令:如上所示,我直接从 C: 驱动器的根目录运行它

enter image description here

关于windows - Windows 中的 cwrsync 未被识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20493309/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com