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?
Asked
Active
Viewed 3.6k times
10
-
it will help if you post exactly what you are doing, and what, if any error messages you get. Good luck. – shellter May 15 '11 at 21:31
-
1Try to log out/log in after editing the PATH variable. At least restart cmd. – ollb May 15 '11 at 21:33
-
I've finaly got what i want after rebooting. Weird. Thanks all of you for your willing to help me. – clumpter May 15 '11 at 22:56
3 Answers
15
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)...

Kurt Pfeifle
- 86,724
- 23
- 248
- 345
-
4I previously tried using "gs ...", but actually, "gswin64c ..." works for me. Thank you for pointing that out! – Charles Feb 20 '18 at 16:44
3
I've finaly got what i want after rebooting. Weird. Thanks all of you for your help.

clumpter
- 1,898
- 6
- 27
- 38
-
I had to add the bin directory of the gs at the beginning of the Path variable. I did not have to restart my system. I just restarted cmd for the change to take effect. – Chaitanya MSV Sep 04 '14 at 22:48
3
In my case the easiest option that actually made it work was renaming the main exe to gs.exe and with the path configured it works like a charm.

Mihail Minkov
- 2,463
- 2
- 24
- 41
-
Quick and dirty. Thanks. I made a copy of `gswin64c.exe` and renamed it to `gs.exe`. – tom Feb 10 '22 at 11:14
-