Advertisement
SynMonger

Change.bat

Aug 14th, 2012
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.15 KB | None | 0 0
  1. @echo off
  2. :start
  3. cls
  4. set /p change=<change.txt
  5.  
  6. echo 1. Home Profile
  7. echo 2. Work Profile
  8. echo 3. Exit
  9.  
  10. choice /c:123 /M "Your choice:"
  11. if errorlevel 3 goto exit
  12. if errorlevel 2 goto work
  13. if errorlevel 1 goto home
  14.  
  15. :home
  16. if "%change%"=="home" (
  17. echo
  18. echo Already on home profile!
  19. goto sleep
  20. goto start
  21. ) else (
  22. echo.
  23. echo Changing to Home Profile
  24. copy /Y .\settings.cfg .\settingswork.cfg
  25. copy /Y .\settingshome.cfg .\settings.cfg
  26. copy /Y .\PluginData\mumechlib\MechJeb.cfg .\PluginData\mumechlib\MechJebwork.cfg
  27. copy /Y .\PluginData\mumechlib\MechJebhome.cfg .\PluginData\mumechlib\MechJeb.cfg
  28. del .\change.txt
  29. echo home>>change.txt
  30. goto exit
  31. )
  32.  
  33. :work
  34. if "%change%"=="work" (
  35. echo.
  36. echo Already on work profile!
  37. goto sleep
  38. goto start
  39. ) else (
  40. echo.
  41. echo Changing to Work Profile
  42. copy /Y .\settings.cfg .\settingshome.cfg
  43. copy /Y .\settingswork.cfg .\settings.cfg
  44. copy /Y .\PluginData\mumechlib\MechJeb.cfg .\PluginData\mumechlib\MechJebhome.cfg
  45. copy /Y .\PluginData\mumechlib\MechJebwork.cfg .\PluginData\mumechlib\MechJeb.cfg
  46. del .\change.txt
  47. echo work>>change.txt
  48. goto exit
  49. )
  50.  
  51. :sleep
  52. ping 127.0.0.1 -n 2 -w 3000 > NUL
  53. ping 127.0.0.1 -n %1 -w 3000 > NUL
  54. goto start
  55.  
  56. :exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement