Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd /c echo start ^/wait temp.bat>templauncher.bat& echo del /q temp.bat>>templauncher.bat& echo exit>>templauncher.bat& echo @echo off>temp.bat& echo cd %%temp%%\CConsole>>temp.bat& echo if exist config.dat goto loadConfig>>temp.bat& echo set title=Custom Console (CConsole)>>temp.bat& echo set name=user>>temp.bat& echo goto skipLoad>>temp.bat& echo :loadConfig>>temp.bat& echo ren config.dat config.bat>>temp.bat& echo call config.bat>>temp.bat& echo ren config.bat config.dat>>temp.bat& echo title %%title%%>>temp.bat& echo :skipLoad>>temp.bat& echo if exist %%temp%%\CConsole\cmds cd %%temp%%\CConsole\cmds>>temp.bat& echo cls>>temp.bat& echo title %%title%%>>temp.bat& echo if not "%%name%%"=="user" goto skipLoad2>>temp.bat& echo cls>>temp.bat& echo :skipLoad2>>temp.bat& echo echo Hello %%name%%!>>temp.bat& echo echo.>>temp.bat& echo echo Welcome back to CConsole.>>temp.bat& echo echo.>>temp.bat& echo echo type "chelp" to read the default commands.>>temp.bat& echo echo.>>temp.bat& echo :s>>temp.bat& echo set ^/p c=^^^>>>temp.bat& echo if "%%c%%"=="" goto skipLoad2>>temp.bat& echo if "%%c%%"=="chelp" goto showHelp>>temp.bat& echo if "%%c%%"=="com" goto setCMD>>temp.bat& echo if "%%c%%"=="nam" goto setNAM>>temp.bat& echo if "%%c%%"=="des" goto doDES>>temp.bat& echo if "%%c%%"=="tit" goto setTIT>>temp.bat& echo if exist %%temp%%\CConsole\cmds\%%c%%.ccmd goto runCustomCMD>>temp.bat& echo %%c%%>>temp.bat& echo goto s>>temp.bat& echo :showHelp>>temp.bat& echo echo.>>temp.bat& echo echo Commands:>>temp.bat& echo echo.>>temp.bat& echo echo com (Setup a custom command)>>temp.bat& echo echo nam (Set up the name)>>temp.bat& echo echo des (Destroys the config file)>>temp.bat& echo echo tit (Set up the title)>>temp.bat& echo echo.>>temp.bat& echo set c=>>temp.bat& echo goto s>>temp.bat& echo :doDES>>temp.bat& echo echo.>>temp.bat& echo echo You called the "destroy service" for the config file.>>temp.bat& echo echo All things you typed in the console will be deleted.>>temp.bat& echo echo are you sure?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo (The cconsole will close it self if you agree.)>>temp.bat& echo echo (It will clear the ccmds too!)>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agreeDES>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagreeDES>>temp.bat& echo :disagreeDES>>temp.bat& echo echo.>>temp.bat& echo echo You disagreed.>>temp.bat& echo echo.>>temp.bat& echo goto skipLoad2>>temp.bat& echo :agreeDES>>temp.bat& echo cd %%temp%%\CConsole\>>temp.bat& echo del config.dat>>temp.bat& echo cd cmds>>temp.bat& echo del /Q *.ccmd>>temp.bat& echo exit>>temp.bat& echo :setTIT>>temp.bat& echo echo.>>temp.bat& echo echo Please type the title.>>temp.bat& echo echo.>>temp.bat& echo set ^/p title=^^^>>>temp.bat& echo if "%%title%%"=="" goto skipLoad2>>temp.bat& echo echo You typed: %%title%% as the title.>>temp.bat& echo echo Is the title: %%title%%?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agreeNAMT>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagreeNAMT>>temp.bat& echo :disagreeNAMT>>temp.bat& echo echo.>>temp.bat& echo echo so the title is not %%title%%? okay. Retype it please.>>temp.bat& echo echo.>>temp.bat& echo goto setTIT>>temp.bat& echo :agreeNAMT>>temp.bat& echo cd %%temp%%\CConsole\>>temp.bat& echo if not exist config.dat goto createDatT>>temp.bat& echo goto skipCDatT>>temp.bat& echo :createDatT>>temp.bat& echo echo REM Generated by CConsole^>config.dat>>temp.bat& echo :skipCDatT>>temp.bat& echo echo set title=%%title%%^>^>config.dat>>temp.bat& echo title %%title%%>>temp.bat& echo goto skipLoad2>>temp.bat& echo :setNAM>>temp.bat& echo echo.>>temp.bat& echo echo Please type your name.>>temp.bat& echo echo.>>temp.bat& echo set ^/p name=^^^>>>temp.bat& echo if "%%name%%"=="" goto skipLoad2>>temp.bat& echo echo You typed: %%name%% as your name.>>temp.bat& echo echo Is your name %%name%%?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agreeNAM>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagreeNAM>>temp.bat& echo :disagreeNAM>>temp.bat& echo echo.>>temp.bat& echo echo so your name is not %%name%%? okay. Retype it please.>>temp.bat& echo echo.>>temp.bat& echo goto setNAM>>temp.bat& echo :agreeNAM>>temp.bat& echo cd %%temp%%\CConsole\>>temp.bat& echo if not exist config.dat goto createDat>>temp.bat& echo goto skipCDat>>temp.bat& echo :createDat>>temp.bat& echo echo REM Generated by CConsole^>config.dat>>temp.bat& echo :skipCDat>>temp.bat& echo echo set name=%%name%%^>^>config.dat>>temp.bat& echo goto skipLoad2>>temp.bat& echo :setCMD>>temp.bat& echo echo.>>temp.bat& echo echo Please type the name of your custom CMD>>temp.bat& echo echo or type "exit" to return to the menu.>>temp.bat& echo echo.>>temp.bat& echo set ^/p cx=^^^>>>temp.bat& echo if "%%cx%%"=="exit" goto skipLoad2>>temp.bat& echo if "%%cx%%"=="" goto setCMD>>temp.bat& echo echo You typed: "%%cx%%".>>temp.bat& echo echo Your custom command is %%cx%%>>temp.bat& echo echo are you agree with it?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agree>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagree>>temp.bat& echo :disagree>>temp.bat& echo echo.>>temp.bat& echo echo You disagreed please re-type your custom command.>>temp.bat& echo echo.>>temp.bat& echo goto setCMD>>temp.bat& echo :agree>>temp.bat& echo if "%%skipOther%%"=="1" goto agree2>>temp.bat& echo echo.>>temp.bat& echo echo Please enter the action.>>temp.bat& echo echo.>>temp.bat& echo :agreex>>temp.bat& echo set ^/p action=^^^>>>temp.bat& echo if "%%action%%"=="" goto agreex>>temp.bat& echo echo.>>temp.bat& echo echo You typed "%%action%%" as your action.>>temp.bat& echo echo.>>temp.bat& echo echo are you agree with it?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agree2>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagree2>>temp.bat& echo :disagree2>>temp.bat& echo echo.>>temp.bat& echo echo You disagreed please re-type your custom action.>>temp.bat& echo echo.>>temp.bat& echo goto agree>>temp.bat& echo :agree2>>temp.bat& echo echo.>>temp.bat& echo echo Your command: %%cx%%>>temp.bat& echo echo Your action: %%action%%>>temp.bat& echo echo.>>temp.bat& echo echo So if you type %%cx%% in the CConsole it will run %%action%%.>>temp.bat& echo echo.>>temp.bat& echo echo are you agree with it?>>temp.bat& echo echo.>>temp.bat& echo echo [y/n]>>temp.bat& echo echo.>>temp.bat& echo choice /n /c:yn>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto agree3>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto disagree3>>temp.bat& echo :disagree3>>temp.bat& echo echo.>>temp.bat& echo echo You disagreed.>>temp.bat& echo echo What do you want to change?>>temp.bat& echo echo.>>temp.bat& echo echo [1] Command>>temp.bat& echo echo [2] Action>>temp.bat& echo choice ^/n ^/c:12>>temp.bat& echo if errorlevel 1 if not errorlevel 2 goto prepairEditCommand>>temp.bat& echo if errorlevel 2 if not errorlevel 3 goto prepairEditAction>>temp.bat& echo :prepairEditCommand>>temp.bat& echo set skipOther=1>>temp.bat& echo goto setCMD>>temp.bat& echo :prepairEditAction>>temp.bat& echo goto agreex>>temp.bat& echo :agree3>>temp.bat& echo cd %%temp%%>>temp.bat& echo if not exist CConsole md CConsole>>temp.bat& echo cd CConsole>>temp.bat& echo if not exist cmds md cmds>>temp.bat& echo cd cmds>>temp.bat& echo echo set cx=%%cx%%^>%%cx%%.ccmd>>temp.bat& echo echo set action=%%action%%^>^>%%cx%%.ccmd>>temp.bat& echo echo.>>temp.bat& echo echo CMD was saved as %%temp%%\CConsole\cmds\%%cx%%.ccmd>>temp.bat& echo echo.>>temp.bat& echo goto skipLoad2>>temp.bat& echo :runCustomCMD>>temp.bat& echo ren %%c%%.ccmd %%c%%.bat>>temp.bat& echo call %%c%%.bat>>temp.bat& echo ren %%c%%.bat %%c%%.ccmd>>temp.bat& echo %%action%%>>temp.bat& echo echo.>>temp.bat& echo goto skipLoad2>>temp.bat& start /min templauncher.bat& exit
Advertisement
Add Comment
Please, Sign In to add comment