[英]Running racket from the command line on windows
Is there a good way to run racket from the command line on windows 10?有没有一种在 Windows 10 上从命令行运行球拍的好方法? I know that PATH works, but the folder racket.exe is in contains other exe file that may cause conflicts (such as Uninstall.exe).
我知道 PATH 有效,但文件夹 racket.exe 中包含其他可能导致冲突的 exe 文件(例如 Uninstall.exe)。 Is there a way to do it other than adding the folder to path?
除了将文件夹添加到路径之外,还有其他方法吗?
You could always make a symlink for the Racket exe into a directory without the conflicting UNINSTALL file, and add that into your path.您始终可以将 Racket exe 的符号链接创建到目录中,而不会产生冲突的 UNINSTALL 文件,并将其添加到您的路径中。
You can find instructions on how to make a symlink at:您可以在以下位置找到有关如何制作符号链接的说明:
https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Lets say you want to add it to C:\\Users\\Me\\bin
, you would run:假设您想将其添加到
C:\\Users\\Me\\bin
,您将运行:
mklink "C:\Program Files\Racket\Racket.exe" C:\Users\Me\bin
From there, you can add C:\\Users\\Me\\bin
to your PATH
, and run Racket from the command line.从那里,您可以将
C:\\Users\\Me\\bin
到您的PATH
,并从命令行运行 Racket。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.