通过调用名称在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:22:51  来源:igfitidea点击:

Call Ghostscript in Windows by its invocation name?

windowscommand-linepathghostscript

提问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:

有几种可能性。列出两个最常见的:

  1. c:\full\path\to\gswin32c.exeshould always work. For 64bit systems, use c:\full\path\to\gswin64c.exe.
  2. After a fresh installation using a standard windows installer, you may need to reboot before the updated %path%environment variable is used.
  3. Open a cmdwindow and (assuming your Ghostscript installation ended up in c:\path\to\gs...) then type set path=c:\path\to\gs\gs9.02\bin;%path%. From this same cmd window you can now simply use gswin32cto start Ghostscript (use gswin64con 64 bit Windows)...
  1. c:\full\path\to\gswin32c.exe应该总是工作。对于 64 位系统,请使用c:\full\path\to\gswin64c.exe.
  2. 使用标准 Windows 安装程序进行全新安装后,您可能需要在使用更新的%path%环境变量之前重新启动。
  3. 打开一个cmd窗口(假设您的 Ghostscript 安装结束于c:\path\to\gs...),然后输入set path=c:\path\to\gs\gs9.02\bin;%path%. 从这个相同的 cmd 窗口,您现在可以简单地gswin32c用来启动 Ghostscript(gswin64c在 64 位 Windows 上使用)...