Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM ...\scripts\batch\code_me.bat
- REM Be sure there is a line break under the ":xzlui" label
- @echo off
- title CodeMe
- set this=%cd%\%~n0%~x0
- goto main
- :main
- echo Would you like to run your code or continue editing the script?
- echo.
- echo [1] Add Code
- echo [2] Run Code
- echo.
- set /p cp_opt=$
- if %cp_opt%==1 cls && goto add_code
- if %cp_opt%==2 cls && goto xzlui
- :add_code
- title CodeMe - Editing %~n0%~x0
- set /p in=$
- if "%in%" == "/s" set in=:: && goto xzlui
- echo %in%>>%this%
- set in=::
- goto add_code
- :xzlui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement