Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6216125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:10:41+00:00 2026-05-24T07:10:41+00:00

Under cygwin I created to_png.bat and just filled it with inkscape command lines used

  • 0

Under cygwin I created to_png.bat and just filled it with inkscape command lines used to convert my SVG files to PNG. If I run these commands myself on the command line they will execute successfully. If I run the to_png.bat file I get the following error:

** (inkscape.exe:3856): WARNING **: Specified document ‘svgs/ace.svg’ cannot be opened (does not exist or not a valid SVG file)

I am running from the same directory of course and I also tried specifying the absolute path in case somehow the working directory inkscape saw was different when running the .bat file. I just did this using python and os.system calls and had the same problem.

EDIT:
Running from a dos command line fails as well with the same problem. Finds inkscape on the PATH, but inkscape cannot find the .svg file. Is this a problem with the single quotes? I have file names with spaces in them hence the quoting.

to_png.bat:

inkscape -h 120 -e 'pngs/ace.png' 'svgs/ace.svg'
inkscape -h 120 -e 'pngs/king.png' 'svgs/king.svg'
inkscape -w 120 -e 'pngs/queen.png' 'svgs/queen.svg'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:10:43+00:00Added an answer on May 24, 2026 at 7:10 am

    In Windows batch scripting, the ' character is not recognised as a character for delimiting file names. Instead, " is used. Also, you would probably be better off using backslashes instead of forward slashes as path delimiters.

    Thus, your script should probably look like this:

    inkscape -h 120 -e "pngs\ace.png" "svgs\ace.svg"
    inkscape -h 120 -e "pngs\king.png" "svgs\king.svg"
    inkscape -w 120 -e "pngs\queen.png" "svgs\queen.svg"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert a local SVN repository to git using git-svn under cygwin
I've just finished installing Hadoop 0.20.2 under Cygwin on Windows 7 with Eclipse Helios
When I run Gnu Emacs under cygwin on Windows and I press ctrl-x ctrl-c
Is it possible to compile and run OpenGL programs from under Cygwin? If yes,
I am trying to build Vim from the source packages, under Cygwin, to enable
Setting up new git installations. On one Windows laptop, I'm running (under cygwin): git
I have been researching how to get Cygwin to work under emacs . I
I am running Windows 7 with gcc/g++ under Cygwin. What would be the Makefile
The following is a fragment of a bash script that I'm running under cygwin
I cannot os.chdir(path) in Python 2.6.5 under WindowsXP SP2. It works fine under CygWin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.