Inkscape.org
Tips, Tricks, and Tutorials Batch *.bat file to open inkscape with default settings
  1. #1
    inkingo inkingo @inkingo
    *

    Hi.

    I made two different batch files to open inkscape with default settings.

    If someone needs it.

    1. Open a text file, such as a Notepad or WordPad document.
    2. Add your commands - Look bottom
    3. Save your file with the file extension .bat, for example, test.bat.
    4. To run your batch file, double click the BAT file you just created.
    5. To edit your batch file, right-click the BAT file and select Edit.

    You must replace "<PATH>" with your path to the files. E.g. "C:\Abc\..."

    Inkscape1.bat
    @echo off
    del "<PATH>\preferences.xml" /s /f /q
    start /d "<PATH>" inkscape.exe


    Inkscape2.bat - Checks, if the files exists.
    @echo off

    set pathToPreferencesXml="<PATH>"
    set pathToInkscapeExe="<PATH>"

    IF EXIST "%pathToPreferencesXml%\preferences.xml" (

        del "%pathToPreferencesXml%\preferences.xml" /s /f /q

    ) ELSE (

        echo Preferences.xml not found
        pause

    )

    IF EXIST "%pathToInkscapeExe%\inkscape.exe" (

        start /d "%pathToInkscapeExe%" inkscape.exe

    ) ELSE (

        echo Inkscape.exe not found
        pause
      
    )

  2. #2
    Patrick Storz Patrick Storz @Ede_123

    Note you can also set the INKSCAPE_PROFILE_DIR environment variable (could be a temporary location for example). This way you avoid to actually reset preferences each time.

  3. #3
    CarmenWing1 CarmenWing1 @CarmenWing1

    bnkscape1.bat
    @echo off
    del "<PATH>\preferences.xml" /s /f /q
    start /d "<PATH>" inkscape.exe
    at test

Inkscape Inkscape.org Inkscape Forum Tips, Tricks, and Tutorials Batch *.bat file to open inkscape with default settings