SAM
SAM

Reputation: 165

Inkscape is not recognised as an internal or external command

I am trying to run Inkscape from command prompt however the error occurs. I have added c:/Program Files/ Inkscape/inkscape.com in the PATH but this not working.

Inkscape is not recognised as an internal or external command 

Upvotes: 1

Views: 6361

Answers (2)

ozturkib
ozturkib

Reputation: 1633

I know it is a bit old question but I faced the similar issue so I would like to share how I approach the issue because using Inkscape's command line might be quite useful for various reasons.

Option 1: You might either change the current directory as

cd C:\Program Files\Inkscape\
inkscape

Example scenario can be converting the .svg file to the .pdf which is useful for LaTeX import. To use it for exporting to PDF through Inkscape's command line (assuming that your file is already located in C:\temp\):

inkscape -D -z --file=C:\temp\logo.svg --export-pdf=C:\temp\logo.pdf --export-latex

Option 2 (Cleaner solution): Or you might add

C:\Program Files\Inkscape\

to the PATH environment variable. In Windows see this link. Then you can run inkscape without changing the current directory.

cd C:\temp
inkscape -D -z --file=logo.svg --export-pdf=logo.pdf --export-latex

Upvotes: 0

Joel Trauger
Joel Trauger

Reputation: 732

I just had this same issue. However my problem was that I didn't add inkscape to the path. Try leaving the inkscape.com off your path and just have it as

C:\Program Files\Inkscape

This worked for me.

Upvotes: 3

Related Questions