通过调用名称在 Windows 中调用 Ghostscript?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6011373/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Call Ghostscript in Windows by its invocation name?
提问by clumpter
What should I do to be able to call Ghostscript in Windows by its invocation name? I added Ghostscript bin folder to Windows PATH and Path variables but it doesn't work, neither does 'gswin32c.exe' nor 'gswin32c'. Logging out and then logging back in also didn't help. How do I solve this issue? Maybe I'm using the wrong invocation name?
我应该怎么做才能通过调用名称在 Windows 中调用 Ghostscript?我将 Ghostscript bin 文件夹添加到 Windows PATH 和 Path 变量,但它不起作用,“gswin32c.exe”和“gswin32c”也不起作用。注销然后重新登录也没有帮助。我该如何解决这个问题?也许我使用了错误的调用名称?
采纳答案by clumpter
I've finaly got what i want after rebooting. Weird. Thanks all of you for your help.
重新启动后我终于得到了我想要的东西。奇怪的。谢谢大家的帮助。
回答by Kurt Pfeifle
There are several possibilities. To list the two most frequent ones:
有几种可能性。列出两个最常见的:
c:\full\path\to\gswin32c.exe
should always work. For 64bit systems, usec:\full\path\to\gswin64c.exe
.- After a fresh installation using a standard windows installer, you may need to reboot before the updated
%path%
environment variable is used. - Open a
cmd
window and (assuming your Ghostscript installation ended up inc:\path\to\gs
...) then typeset path=c:\path\to\gs\gs9.02\bin;%path%
. From this same cmd window you can now simply usegswin32c
to start Ghostscript (usegswin64c
on 64 bit Windows)...
c:\full\path\to\gswin32c.exe
应该总是工作。对于 64 位系统,请使用c:\full\path\to\gswin64c.exe
.- 使用标准 Windows 安装程序进行全新安装后,您可能需要在使用更新的
%path%
环境变量之前重新启动。 - 打开一个
cmd
窗口(假设您的 Ghostscript 安装结束于c:\path\to\gs
...),然后输入set path=c:\path\to\gs\gs9.02\bin;%path%
. 从这个相同的 cmd 窗口,您现在可以简单地gswin32c
用来启动 Ghostscript(gswin64c
在 64 位 Windows 上使用)...