That force the user to install a program from a www site, any other way you can do a "restore" system, maybe a bat file arent the best way, but the only way i could figure out, the thing i want to do:
1: close mirc.exe (or what ever the name are)
2: remove the file mirc.ini
3: remove the file called var.ini
4: copy mirc.ini from a map called "backup"
5: copy var.ini from a map called "backup"
6: done!
The code i testing with are:
@echo off
cls
echo =========================
echo Script restore importer.
echo =========================
echo.
echo Atempting to import files and settings.
echo.
echo Closing mirc.exe...
taskkill /IM mirc-test.exe
echo.
echo Importing your settings..
del "E:\mirc\mirc.ini"
del "E:\mirc\system\var.ini"
copy "E:\mirc\backup\var.ini" /Y "E:\mirc\var.ini"
copy "E:\mirc\backup\mirc.ini" /Y "E:\mirc\mirc.ini"
echo.
echo Done!
echo.
pause
And i create the bat file for every new install of my script, so i write the bat on first start so the path are allways the install folder for mirc.
;-------- Edit
one way would be to download the files from my linux comp, but still the problem remain, mirc need to be totaly closed befor i can remove mirc.in and var.ini ..