11

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?

3
  • it will help if you post exactly what you are doing, and what, if any error messages you get. Good luck.
    – shellter
    Commented May 15, 2011 at 21:31
  • 1
    Try to log out/log in after editing the PATH variable. At least restart cmd.
    – ollb
    Commented May 15, 2011 at 21:33
  • I've finaly got what i want after rebooting. Weird. Thanks all of you for your willing to help me.
    – clumpter
    Commented May 15, 2011 at 22:56

3 Answers 3

18

There are several possibilities. To list the two most frequent ones:

  1. c:\full\path\to\gswin32c.exe should 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 cmd window 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 gswin32c to start Ghostscript (use gswin64c on 64 bit Windows)...
1
  • 5
    I previously tried using "gs ...", but actually, "gswin64c ..." works for me. Thank you for pointing that out!
    – Charles
    Commented Feb 20, 2018 at 16:44
6

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.

2
  • 1
    Quick and dirty. Thanks. I made a copy of gswin64c.exe and renamed it to gs.exe.
    – tom
    Commented Feb 10, 2022 at 11:14
  • Sometimes quick and dirty is the only option :) @ztom Commented Feb 11, 2022 at 5:19
3

I've finaly got what i want after rebooting. Weird. Thanks all of you for your help.

1
  • 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. Commented Sep 4, 2014 at 22:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.