Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :start
- cls
- set /p change=<change.txt
- echo 1. Home Profile
- echo 2. Work Profile
- echo 3. Exit
- choice /c:123 /M "Your choice:"
- if errorlevel 3 goto exit
- if errorlevel 2 goto work
- if errorlevel 1 goto home
- :home
- if "%change%"=="home" (
- echo
- echo Already on home profile!
- goto sleep
- goto start
- ) else (
- echo.
- echo Changing to Home Profile
- copy /Y .\settings.cfg .\settingswork.cfg
- copy /Y .\settingshome.cfg .\settings.cfg
- del .\change.txt
- echo home>>change.txt
- goto exit
- )
- :work
- if "%change%"=="work" (
- echo.
- echo Already on work profile!
- goto sleep
- goto start
- ) else (
- echo.
- echo Changing to Work Profile
- copy /Y .\settings.cfg .\settingshome.cfg
- copy /Y .\settingswork.cfg .\settings.cfg
- del .\change.txt
- echo work>>change.txt
- goto exit
- )
- :sleep
- ping 127.0.0.1 -n 2 -w 3000 > NUL
- ping 127.0.0.1 -n %1 -w 3000 > NUL
- goto start
- :exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement