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
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.
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
)
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.bnkscape1.bat
@echo off
at testdel "<PATH>\preferences.xml" /s /f /q
start /d "<PATH>" inkscape.exe