If exist "%appdata%\inkscape" goto sauvegarde ELSE goto portableinkscape

:sauvegarde
xcopy /E /H /R /I /Y "%appdata%\inkscape" backup
rd /S /q "%appdata%\inkscape"

:portableinkscape
xcopy /E /H /R /I /Y userprofile "%appdata%\inkscape"
cd inkscape
inkscape.exe
cd ..
xcopy /E /H /R /I /Y "%appdata%\inkscape" userprofile
rd /S /q "%appdata%\inkscape"
If NOT exist backup goto fin

:restauration
xcopy /E /H /R /I /Y backup "%appdata%\inkscape"
rd /S /q backup

:fin