Advertisement
SynMonger

Untitled

Apr 3rd, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.83 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. del .\change.txt
  27. echo home>>change.txt
  28. goto exit
  29. )
  30.  
  31. :work
  32. if "%change%"=="work" (
  33. echo.
  34. echo Already on work profile!
  35. goto sleep
  36. goto start
  37. ) else (
  38. echo.
  39. echo Changing to Work Profile
  40. copy /Y .\settings.cfg .\settingshome.cfg
  41. copy /Y .\settingswork.cfg .\settings.cfg
  42. del .\change.txt
  43. echo work>>change.txt
  44. goto exit
  45. )
  46.  
  47. :sleep
  48. ping 127.0.0.1 -n 2 -w 3000 > NUL
  49. ping 127.0.0.1 -n %1 -w 3000 > NUL
  50. goto start
  51.  
  52. :exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement