Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem WE'RE BACK AND BETTER THAN EVER. ;)
- rem Feel free to edit the code! If you need help with something, don't be afraid to ask us!
- set versionlabel=SIMPL-DOS 0.47
- set batchname=SIMPL-DOS_0.47.bat
- if /i "%1"=="-?" goto CMDHelp
- if /i "%1"=="/?" goto CMDHelp
- title %versionlabel% (Initialization)
- if /i "%1"=="12345" ( set homedir=%2 ) ELSE ( set homedir=%cd% )
- set realdir=%cd%
- if /i "%1"=="TXTED" goto TXTcom
- set blankvar=""
- set txtedworks="true"
- if /i "%1"=="RESET" (cls
- echo Booting into SIMPL-Reset...
- echo.
- goto resetcom
- )
- title %versionlabel% (Start-up)
- echo SIMPL-DOS is checking for necessary files...
- if not exist "%WinDir%/system32/mode.com" (echo MODE not found!
- echo SIMPL-DOS might not display or run correctly!
- pause
- )
- mode con: cols=96 lines=50
- if not exist %batchname% (echo The SIMPL-DOS file wasn't found!
- echo TXTED will not work and has been disabled!
- set txtedworks="false"
- pause
- )
- if not exist "%WinDir%/system32/ping.exe" (echo PING not found!
- echo The startup animation will output a bunch of "unrecognized command" errors!
- echo Additionally, the INTRPIN and INTRPIN6 commands WILL NOT work!
- pause
- )
- cls
- PING 0.0.0.0 -n 2 -w 1000 >NUL
- echo SSSSS IIIIIIIIIIII M M PPPP LL
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo S II M M M M P P LL
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo SSSSS II M M M M PPPP LL
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo S II M M M M P LL
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo SSSSS IIIIIIIIIIII M M M P LLLLL
- ECHO.
- PING 0.0.0.0 -n 1 -w 1000 >NUL
- echo DDDD O SSSSS
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo D D O O S
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo D D O O SSSSS
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo D D O O S
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo DDDD O SSSSS
- PING 0.0.0.0 -n 1 -w 1000 >NUL
- echo.
- echo O 4 4 7777777
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo O O 4 4 77
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo O O 44444 77
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo O O 4 77
- PING 0.0.0.0 -n 1 -w 400 >NUL
- echo O * 4 77
- PING 0.0.0.0 -n 1 -w 500 >NUL
- echo Build 470 5-18-14
- PING 0.0.0.0 -n 3 -w 500 >NUL
- ::SIMPL-DOS source code
- title %versionlabel% (SIMPL-DOS Shell)
- echo %versionlabel%
- echo Copyright 2010-2014 Fire219 and the SIMPL-DOS Team
- echo.
- if not exist C:\SIMPLsettings md C:\SIMPLsettings & echo %blankvar% >> C:\SIMPLsettings\FirstRun.sss
- if exist C:\SIMPLsettings\NoAcc.sss goto StartAccDisabled
- if not exist C:\SIMPLsettings\FirstRun.sss goto AdminExists
- title %versionlabel% (User Account Setup)
- echo Welcome to the SIMPL-DOS First Run Setup!
- echo Would you like to setup an admin and user account? (Y/N)
- set /p SetAcct=
- if /i "%SetAcct%"=="N" echo %blankvar% >> C:\SIMPLsettings\NoAcc.sss & goto StartAccDisabled
- echo Would you like to setup an administrator account? (Y/N)
- set /p AdminSetup=
- echo.
- if /i "%AdminSetup%"=="N" goto MakeStandard
- echo Please enter your admin password:
- set /p AdminPassword=
- echo %AdminPassword% > C:\SIMPLsettings\adminpass.sss
- echo.
- echo Admin account created.
- :MakeStandard
- echo.
- echo Standard Account creation:
- echo.
- echo Please enter your desired username:
- set /p user=
- echo %user% > "C:\SIMPLsettings\%user%.sss"
- echo.
- echo Please enter your desired password:
- set /p pass=
- echo %pass% > "C:\SIMPLsettings\%user%pass.sss"
- echo.
- echo Account "%user%" created.
- pause
- echo.
- echo Done! Starting into regular bootup...
- del C:\SIMPLsettings\FirstRun.sss
- :AdminExists
- echo.
- echo Welcome to SIMPL-DOS!
- :logincom
- title %versionlabel% (Login)
- echo.
- echo Please enter your username:
- set /p usrenterd=
- set /p user=<"C:\SIMPLsettings\%usrenterd%.sss"
- if %usrenterd% == RESET47 goto resetcom
- if %usrenterd% == reset47 goto resetcom
- if %usrenterd% == %user% goto passentrcom
- echo That's incorrect! Try again!
- goto logincom
- :passentrcom
- echo Please enter your password:
- set /p passenterd=
- set /p pass=<"C:\SIMPLsettings\%usrenterd%pass.sss"
- if %passenterd% == %pass% goto startcom
- echo That's incorrect. Please try again.
- goto passentrcom
- :signupcom
- :resetcom
- echo Are you sure you wish to reset all settings? (Y/N)
- set /p settingsreset=
- if /i "%settingsreset%"=="Y" goto ResetYes
- goto logincom
- :StartAccDisabled
- echo Welcome to SIMPL-DOS!
- goto startcom
- :CMDHelp
- echo Usage: %batchname% 12345 (directory) TEXTED RESET -?
- echo 12345 (directory) - sets home directory to the specified path
- echo TEXTED - Boots into SIMPL-DOS Text Editor
- echo RESET - Boots into SIMPL-Reset
- echo -? or /? - Shows this help message
- exit /b
- :startcom
- title %versionlabel% (SIMPL-DOS Shell)
- echo You have successfully logged in.
- pause.
- echo Welcome!
- echo Type HELP to learn the commands. Commands are case-insensitive.
- echo.
- echo It is currently %date% at %time%.
- echo.
- :newcom
- title %versionlabel% (SIMPL-DOS Shell)
- set cmd=0
- set choice=
- set /p choice=$
- if /i "%choice%"=="" goto newcom
- if /i "%choice%"==" " goto newcom
- if /i "%choice%"=="help" goto HELP
- if /i "%choice%"=="ver" goto basicvercom
- if /i "%choice%"=="verext" goto VERcom
- if /i "%choice%"=="exit" (
- echo SIMPL-DOS will now shut down.
- pause > nul
- if exist SIMPL_junk rd /s /q SIMPL_junk
- if exist SIMPL_TXT.tmp del SIMPL_TXT.tmp
- title Command Prompt
- cls
- exit /b
- )
- if /i "%choice%"=="winprpt" goto WINPRPTcom
- if /i "%choice%"=="bugtrack" goto BUGTRACKcom
- if /i "%choice%"=="open" set cmd=1 & goto OPENcom
- if /i "%choice%"=="cake" goto Easter1
- if /i "%choice%"=="moo" goto Easter2
- if /i "%choice%"=="i am bored" goto Easter3
- if /i "%choice%"=="txted" goto TxtEdCheck
- if /i "%choice%"=="color" goto COLcom
- if /i "%choice%"=="info" goto INFOcom
- if /i "%choice%"=="othbos" goto OTHBcom
- if /i "%choice%"=="advtools" goto ADVTcom
- if /i "%choice%"=="filedel" goto FLDLcom
- if /i "%choice%"=="intrpin" goto INTPcom
- if /i "%choice%"=="intrpin6" goto INTP6com
- if /i "%choice%"=="date" goto DATEcom
- if /i "%choice%"=="time" goto TIMEcom
- if /i "%choice%"=="openb" goto OPENBcom
- if /i "%choice%"=="files" goto FILEScom
- if /i "%choice%"=="tour" goto TOURcom
- if /i "%choice%"=="sam" goto SAMcom
- if /i "%choice%"=="clr" cls & goto newcom
- if /i "%choice%"=="calc" goto CALCcom
- if /i "%choice%"=="reset" goto Resettercom
- if /i "%choice%"=="update" goto PerformUpdateCom
- if /i "%choice%"=="wikildr" goto Wikicom
- if /i "%choice%"=="user" goto UserNamecom
- if /i "%choice%"=="webcoms" goto webcom
- if /i "%choice%"=="gsearch" goto googlecom
- if /i "%choice%"=="traceroute" goto tracertcom
- if /i "%choice%"=="shtdwn" goto ShutdownSyscom
- if /i "%choice%"=="percalc" goto PercentCalccom
- if /i "%choice%"=="visitsd" (start http://simpldos.com
- goto newcom)
- if /i "%choice%"=="useracc" goto UserAccCom
- if /i "%choice%"=="symlink" goto SymLinkCom
- if /i "%choice%"=="runcmd" goto RunCMDCom
- echo %choice% is not a valid command. Type HELP to see the commands you can use.
- goto newcom
- :HELP
- title %versionlabel% (Help)
- echo.
- echo HELP
- echo.
- echo Commands:
- echo ADVTOOLS = Shows the commands for advanced utilities.
- echo BUGTRACK = View the SIMPL-DOS changelog starting from version 0.3.
- echo CALC = Opens a calculator.
- echo COLOR = Allows you to change the color scheme.
- echo DATE = Shows the date.
- echo EXIT = Closes the Session.
- echo CLR = Clears the screen.
- echo GSEARCH = Google search utility
- echo FILES = Opens the file explorer.
- echo HELP = Brings up this list.
- echo INFO = Learn about SIMPL-DOS.
- echo VER = Displays the version of SIMPL-DOS.
- echo VEREXT = Displays the version of SIMPL-DOS and other info.
- echo OPEN = Open any file on your system.
- echo OTHBOS = Search of older versions of SIMPL-DOS.
- echo PERCALC = Opens a percent calulator.
- echo RESET = Resets SIMPL-DOS completely.
- echo RUNCMD = Run an external (non-SIMPL) command.
- echo SAM = Opens the SIMPL App Manager.
- echo SHTDWN = Shuts down or restarts the system.
- echo TIME = Shows the time.
- echo TOUR = A Brief Tour of SIMPL-DOS.
- echo TRACEROUTE = Allows you to view the IP route to a hostname.
- echo TXTED = Open a simple text editor.
- echo UPDATE = Allows you to apply updates to SIMPL-DOS while it runs.
- echo USERACC = Allows you to add, change, view and remove user accounts.
- echo USER = Shows the name of the currently logged on user.
- echo WINPRPT = Opens a Windows command prompt.
- echo WEBCOMS = Lists the internet-enabled commands.
- echo VISITSD = Go to the SIMPL-DOS website.
- goto newcom
- :VERcom
- title %versionlabel% (About SIMPL-DOS)
- echo.
- echo %versionlabel% (build 470)
- echo by The SIMPL-DOS Team
- echo.
- echo Legal Info:
- echo.
- echo SIMPL-DOS kernel: Copyright 2010-2014 Fire219
- echo Most programs: Copyright 2010-2014 Fire219
- echo SIMPL Text Editor: Copyright 2010-2011 Skirmisher and Fire219
- echo BugTracker, SIMPL-Reset and Runtime Updater: Copyright 2011-2012 WindozeNT Software
- echo Login code: Copyright 2010 ProgrammingFreak and 2011 Fire219
- echo Color Changer code: Copyright 2010 Zorbak42
- echo Calculator: Copyright 2010 ProgrammingFreak
- echo (External) IPv4 pinging code: Copyright 1987 IBM and Microsoft.
- echo (External) IPv6 pinging code: Copyright 1993 Microsoft.
- echo.
- goto newcom
- :basicvercom
- echo SIMPL-DOS 0.47 (build 470)
- goto newcom
- :WINPRPTcom
- start cmd.exe
- goto newcom
- :Easter1
- echo The cake is a lie!
- goto newcom
- :Easter2
- echo Moo! I am a cow!
- pause > NUL
- echo DON'T MILK MEH!!!!!!!!
- goto newcom
- :Easter3
- echo You're bored, eh? Well, you've got plenty to do with SIMPL-DOS. Type HELP for commands, or maybe you'd like the tour. Go ahead and try out stuff!
- goto newcom
- :TxtEdCheck
- if "%txtedworks%"=="false" goto TxtEdErr
- if "%txtedworks%"=="true" goto TxtEdRun
- :TxtEdRun
- START %batchname% TXTED %homedir% & goto newcom
- :TXTcom
- cls
- title SIMPL TEXT EDITOR 2.1
- if exist SIMPL_TXT.tmp del SIMPL_TXT.tmp
- echo SIMPL TEXT EDITOR 2.1
- echo Press Enter for new line. Close this window to exit.
- echo Type "SAVETXT" (in all caps without quotes) to save your text file.
- :newline
- set name=*
- set /p choice=
- if /i "%choice%"=="SAVETXT" goto choosename
- echo %choice% >> SIMPL_TXT.tmp
- goto newline
- :choosename
- md SIMPL_junk
- set slashfail=0
- set fail=0
- cd %homedir%
- echo Type the name you want your file to have.
- set /p name=
- md "%realdir%\SIMPL_junk\%name%.12345"
- if errorlevel 1 set fail=1
- if %fail%==1 (
- echo Illegal character used, please try another name.
- goto choosename
- )
- if not exist "%realdir%\SIMPL_junk\*.12345" (
- echo Illegal character used, please try another name.
- rd /s /q "%realdir%\SIMPL_junk"
- goto choosename
- )
- rd /s /q "%realdir%\SIMPL_junk"
- if exist "%name%" choice /n /m "The file %name% already exists, would you like to replace it [Y] or choose a different name [N]?
- if ERRORLEVEL 2 goto choosename
- copy "%realdir%\SIMPL_TXT.tmp" "%name%"
- :cont
- set /p choice= "Continue working on this document [C] or start a new document [N]?
- cls
- if %choice%==C (
- title SIMPL TEXT EDITOR 2.1 - %name%
- type SIMPL_TXT.tmp
- goto newline)
- if %choice%==N (
- title SIMPL TEXT EDITOR 2.1
- del SIMPL_TXT.tmp
- cls
- goto newline
- )
- goto cont
- :COLcom
- title %versionlabel% (SIMPL Color Changer)
- echo.
- echo What color do you want the background to be? 0 = Black, 1 = Blue, 2 = Green, 3 = Aqua, 4 = Red, 5 = Purple, 6 = Yellow, 7 = White.
- set /p colour1=
- echo What color do you want the text to be? 8 = Grey, 9 = Blue, A = Green, B = Aqua, C = Red, D = Purple, E = Yellow, F = White.
- set /p colour2=
- color %colour1%%colour2%
- goto newcom
- :INFOcom
- title %versionlabel% (SIMPL Info)
- echo.
- echo Info
- echo.
- echo Welcome to SIMPL-DOS 0.47. This the third new version under the new and revamped SIMPL-DOS Team. We have more experience under our belts, and are ready to try this again.
- echo.
- echo Well... ready except for one thing. We need more team members. If you think you could help make SIMPL the best it can be, why not join us? ;)
- goto newcom
- :BUGTRACKcom
- title %versionlabel% (BugTracker)
- cls
- echo.
- echo BugTracker 1.0
- echo by WindozeNT
- echo.
- echo SIMPL-DOS Changelog as of 5-18-2014:
- echo 0.47 by WindozeNT
- echo Completely rewrote multiuser support
- echo Added command that runs regular CMD commands
- echo Added Symbolic Link Creator
- echo Added command line help
- echo Added simpler version command
- echo Fixed some minor errors
- echo.
- echo 0.46 by WindozeNT
- echo Added multiuser support
- echo Added ability to disable user accounts
- echo Extra TXTED safety checks
- echo Various optimizations
- echo.
- echo 0.45 "Lightningbolt" by fire219 and WindozeNT
- echo Added Google Search tool
- echo Reorganized Help system
- echo Optimized case-insensitivity (suggestion by WindozeNT)
- echo Added file renamer to FileSnake
- echo Revamped many informational programs
- echo Added TRACEROUTE command
- echo Added System Shutdown Utility
- echo Added percent calculator
- echo Added visit S-D website command
- echo.
- echo 0.44 by WindozeNT
- echo Added command to print the name of the logged on user
- echo Added Wikipedia Loader
- echo Added RESET command-line parameter to allow SIMPL to boot right into SIMPL-Reset
- echo Improved startup file checker
- echo Random optimizations and fixes
- echo.
- echo 0.43 by WindozeNT
- echo Added file-checking code in boot-up
- echo Added a prompt indicator (main prompt only)
- echo Added animated bootscreen (originally designed by Fire219)
- echo Added app names in the title
- echo Added a runtime updater (allows source code updates to be applied immediately)
- echo Added various optimizations
- echo Slightly improved TXTED
- echo Fixed invalid formatting in Tour
- echo.
- echo More...
- pause > nul
- echo 0.42 by WindozeNT
- echo Fixed the TXTED bug that was in 0.4
- echo Fixed various typos
- echo SIMPL now allows commands to be typed in lowercase
- echo Updated copyright years
- echo Added System Logon Bypasser
- echo Fixed OTHBOS command
- echo Added SIMPL-Reset
- echo.
- echo 0.4 by fire219 and ProgrammingFreak
- echo Added a login system
- echo Added the admin system
- echo.
- echo 0.38.5 by ProgrammingFreak
- echo Added the calculator
- echo Various optimizations (by fire219)
- echo.
- echo 0.38 by fire219 and Skirmisher
- echo Added SAM (SIMPL App Manager)
- echo.
- echo 0.36.1 by Skirmisher
- echo Fixed file location issues in SIMPL Text Editor (v2)
- echo.
- echo 0.36 by Skirmisher
- echo Totally revamped the SIMPL Text Editor
- echo Improved FileSnake
- echo Other stuff we don't remember
- echo.
- echo 0.35 by fire219
- echo Improved color changer
- echo Added the tour
- echo Various Optimizations
- echo.
- echo 0.33 by fire219
- echo Added FileSnake
- echo Added the webpage opener
- echo Various bug fixes
- echo.
- echo 0.30 by fire219
- echo Initial Public Release
- echo.
- goto newcom
- :UserNamecom
- if exist C:\SIMPLsettings\NoAcc.sss (
- echo User accounts are disabled.
- goto newcom
- )
- echo Your username is %user%
- echo.
- goto newcom
- :Wikicom
- title %versionlabel% (Wikipedia Loader)
- echo.
- echo Wikipedia Loader
- echo by WindozeNT
- echo.
- echo Type the name of the Wikipedia article you want to view.
- echo REPLACE ALL SPACES WITH AN UNDERSCORE (_).
- set /p WikiPage=
- START http://en.wikipedia.org/wiki/%WikiPage%
- echo.
- goto newcom
- :ADVTcom
- title %versionlabel% (Advanced Utilities)
- echo.
- echo Advanced Utilities
- echo.
- echo FILEDEL = Deletes any file on your system.
- echo INTRPIN = Pings the chosen IPv4 address.
- echo INTRPIN6 = Pings the chosen IPv6 address.
- echo SHTDWN = Shuts down or restarts the system.
- echo SYMLINK = Creates a symbolic link to a directory or file.
- goto newcom
- :FLDLcom
- if not exist C:\SIMPLsettings\adminpass.sss goto noadminFD
- echo Admin password is required to access this program.
- echo Enter password, or type "back" to go back.
- :badFDpass
- set /p APT=
- set /p AdminPassword=<"C:\SIMPLsettings\adminpass.sss"
- if /i "%APT%"=="back" goto newcom
- if %APT%==%AdminPassword% goto noadminFD
- echo Incorrect Password! Try again.
- goto badFDpass
- :noadminFD
- title %versionlabel% (File Delete Utility)
- echo.
- echo File Deleter Utility
- echo Copyright 2010-2011 Fire219
- echo WARNING: Deleting System file(s) may cause damage to your computer!
- :delfile
- echo Type the name and path of the file you wish to delete.
- set /p choice=
- if not exist %choice% echo %choice% doesn't exist.
- if not exist %choice% goto delfile
- choice /n /m "Are you sure you want to delete %choice%?"
- if ERRORLEVEL 2 goto delfile
- del %choice%
- echo Deleted.
- choice /n /m "Delete another file? [Y or N]"
- if ERRORLEVEL 1 goto delfile
- goto newcom
- :INTPcom
- title %versionlabel% (IPv4 Ping Utility)
- echo.
- echo IPv4 ping Utility
- echo Copyright 2010-2011 Fire219 and 1987 IBM and Microsoft.
- echo Type the IPv4 address you wish to ping.
- set /p choice=
- ping %choice%
- goto newcom
- :INTP6com
- title %versionlabel% (IPv6 Ping Utility)
- echo.
- echo IPv6 ping utility
- echo Copyright 2010-2011 Fire219 and 1993 Microsoft.
- echo Type the IPv6 address you wish to ping.
- set /p choice=
- ping -6 %choice%
- goto newcom
- :DATEcom
- echo.
- date /t
- goto newcom
- :TIMEcom
- echo.
- time /t
- goto newcom
- :OPENBcom
- title %versionlabel% (Website Opener)
- echo Website Opener v2.01
- echo Copyright 2010-2011 Fire219
- echo What site do you want to visit? (Don't type the protocol, http:// will be used.)
- set /p choice=
- START http://%choice%
- goto newcom
- :FILEScom
- title %versionlabel% (FileSnake)
- echo.
- echo FileSnake v1.6
- echo Copyright 2010-2013 Fire219 and Skirmisher
- echo Type CMND for navigational commands.
- cd %homedir%
- :nxtdir
- set /p choice=%cd%:
- echo.
- if /i "%choice%"=="cmnd" goto CMNDS
- if /i "%choice%"=="drive" goto CHGDRV
- if /i "%choice%"=="DIR" (
- dir /b /p
- goto nxtdir
- )
- if /i "%choice%"=="dir" (
- dir /b /p
- goto nxtdir
- )
- if /i "%choice%"=="home" goto HOMEDIR
- if /i "%choice%"=="open" goto OPENcom
- if /i "%choice%"=="fhelp" goto FSHELP
- if /i "%choice%"=="rnme" goto renamefile
- if /i "%choice%"=="EXIT" (
- cd "%realdir%"
- goto newcom
- )
- if /i "%choice%"=="exit" (
- cd "%realdir%"
- goto newcom
- )
- cd "%choice%"
- dir /b /p
- goto nxtdir
- :HOMEDIR
- cd "%homedir%"
- dir /b /p
- goto nxtdir
- :CHGDRV
- echo Type the drive letter you want to change to (e.g. D:).
- set /p choice=
- %choice%
- goto nxtdir
- :OPENcom
- if %cmd%==1 cd %homedir%
- echo Type a file to open or a command to run.
- set /p open=Type your command:
- %open%
- if %cmd%==1 (
- cd "%realdir%"
- goto newcom
- )
- goto nxtdir
- :CMNDS
- echo.
- echo Commands
- echo.
- echo CMND = Open this list.
- echo DIR = Get the directory listing for the current directory.
- echo HOME = Go back to the Home directory.
- echo OPEN = Open a file in the current directory or run any command.
- echo FHELP = Open the help document.
- echo RNME = Rename a file
- echo EXIT = Exit (self-explanatory really :P)
- goto nxtdir
- :FSHELP
- echo.
- echo FileSnake Help
- echo.
- echo To go to a directory:
- echo Type its name when you see the flashing cursor.
- echo.
- echo To open a file, type "OPEN", then type your command.
- echo.
- echo End of Help. Continue from where you left off.
- goto nxtdir
- :renamefile
- echo.
- set /p renamee="Please type the filename/path of the file you wish to rename. (INCLUDE EXTENSION)"
- if not exist "%renamee%" echo File not found. | goto nxtdir
- set /p renamed="Please type the new name/path of the file. (INCLUDE EXTENSION)"
- copy "%renamee%" "%renamed%"
- del "%renamee%"
- echo Done.
- echo.
- goto nxtdir
- :TOURcom
- title %versionlabel% (Tour)
- cls
- echo.
- echo Welcome to SIMPL-DOS, the new DOS that will fit on a floppy!
- echo.
- pause
- echo.
- echo SIMPL-DOS is made for you to get things done fast. Plain and SIMPLe.
- echo For older people, this also can be used for nostalgia, remembering the days of MS-DOS and
- echo i386s.
- echo.
- pause
- echo.
- echo OK, enough stuff about SIMPL-DOS. Now it's time to learn how to use it.
- echo.
- echo And from now on, I will refer to SIMPL-DOS as SIMPL, because "SIMPL-DOS" takes a minute to
- echo write, and I am VERY lazy. ;)
- pause
- echo.
- echo OK, you have figured out how to start a program, or else you would not be reading this, so I
- echo will skip that. We will start with how to tell if a program is ready.
- echo.
- pause
- echo When you go into most programs, you notice a small introduction for the program, then a
- echo $ sign followed by a blinking cursor/underscore. That cursor means that SIMPL is waiting for input.
- echo.
- echo Next is how SIMPL may interact with Windows applications.
- pause
- echo.
- echo Some programs may interact with outside (Windows) applications. Due to the obvious limitations
- echo of text-based technology and Batch Processing (what we use to make SIMPL), we cannot run
- echo graphical apps in SIMPL. The next best thing is to use Windows apps. For example, Website
- echo Opener asks for the webpage you wish to visit, then tells your web browser to go there.
- echo.
- echo Next: Last Stop
- echo.
- pause
- echo.
- echo Well, that is about all I can tell you. SIMPL is constantly being improved. Keep your eye out
- echo for new releases.
- echo Have fun, and if you are a Scratcher (scratch.mit.edu), Scratch on!
- echo Fire219
- echo.
- pause
- cls
- goto newcom
- :SAMcom
- title %versionlabel% (SIMPL App Manager)
- if not exist "%userprofile%\SIMPL-apps" md "%userprofile%\SIMPL-apps"
- echo.
- echo SIMPL App Manager (SAM) v1.0
- echo Copyright 2010-2011 Fire219
- echo.
- echo Confused? Type SAMHLP to learn what this is!
- echo Type EXIT to exit.
- echo.
- :SAMstart
- echo Apps in SIMPL-apps folder:
- dir "%userprofile%\SIMPL-apps\" /B
- goto SAMopen
- :SAMhlp
- echo.
- echo SIMPL App Manager Help
- echo.
- echo SIMPL App Manager (SAM) is a new feature of SIMPL-DOS, where you can use external SIMPL-DOS apps, made by the SD team, or other SIMPL-DOS users.
- echo.
- echo SAM looks in a folder called SIMPL-apps in your user directory for the SIMPL-DOS applications. This folder will be created the first time you run SAM.
- echo.
- echo To use SAM, put your apps in the mentioned folder, run SAM, and select the app you wish to run, and your app will start!
- echo.
- echo SIMPL-DOS apps can be in any Windows executable file format, including .bat, .exe, and .cmd. Other than that, the sky is the limit for apps and SAM!
- echo -Fire219
- goto SAMstart
- :SAMopen
- set SAMo=
- echo.
- echo Select the app you wish to run.
- set /p SAMo=
- if /i "%SAMo%"=="samhlp" goto SAMhlp
- if /i "%SAMo%"=="exit" goto newcom
- cd "%userprofile%\SIMPL-apps\"
- start %SAMo%
- cd "%realdir%"
- goto SAMstart
- :CALCcom
- title %versionlabel% (Calculator)
- echo Welcome to the SIMPL-DOS Calculator!
- echo by ProgrammingFreak
- echo.
- goto :Acom
- :Acom
- echo Enter first number:
- set /p num1=
- echo Enter operator:
- set /p operator=
- echo Enter second number:
- set /p num2=
- set /a sum=%num1% %operator% %num2%
- goto :Bcom
- :Bcom
- echo The answer is %sum%
- goto newcom
- :Resettercom
- if not exist C:\SIMPLsettings\adminpass.sss goto NoAdminSR
- echo Admin password is required to access this program.
- echo Enter password, or type "back" to go back.
- :badSRpass
- set /p APT=
- set /p AdminPassword=<"C:\SIMPLsettings\adminpass.sss"
- if /i "%APT%"=="back" goto newcom
- if %APT%==%AdminPassword% goto noadminSR
- echo Incorrect Password! Try again.
- goto badSRpass
- :NoAdminSR
- title %versionlabel% (SIMPL-Reset)
- echo SIMPL-Reset 0.47
- echo by WindozeNT
- goto AskReset
- :AskReset
- echo.
- echo Are you sure you want to reset SIMPL-DOS (Y/N)?
- set /p reset=
- if /i "%reset%"=="Y" goto ResetYes
- if /i "%reset%"=="N" goto ResetNo
- echo Not a valid response.
- goto AskReset
- :ResetYes
- rd "C:/SIMPLsettings/" /s /q
- echo SIMPL-DOS has been reset and will now shut down.
- pause
- if exist SIMPL_junk rd /s /q SIMPL_junk
- if exist SIMPL_TXT.tmp del SIMPL_TXT.tmp
- exit /b
- :ResetNo
- echo SIMPL-DOS has not been reset.
- goto newcom
- :OTHBcom
- title %versionlabel% (Other Batch OS Utility)
- echo Batch DOS utility v0.47
- echo Originally by Fire219
- echo Rewritten by WindozeNT
- echo.
- if exist SIMPL-DOS_0.3.bat echo Legacy SIMPL-DOS version 0.3 detected.
- if not exist SIMPL-DOS_0.3.bat echo Legacy SIMPL-DOS version 0.3 not detected.
- if exist SIMPL-DOS_0.33.bat echo Legacy SIMPL-DOS version 0.33 detected.
- if not exist SIMPL-DOS_0.33.bat echo Legacy SIMPL-DOS version 0.33 not detected.
- if exist SIMPL-DOS_0.35.bat echo Legacy SIMPL-DOS version 0.35 detected.
- if not exist SIMPL-DOS_0.35.bat echo Legacy SIMPL-DOS version 0.35 not detected.
- if exist SIMPL-DOS_0.36.bat echo Legacy SIMPL-DOS version 0.36 detected.
- if not exist SIMPL-DOS_0.36.bat echo Legacy SIMPL-DOS version 0.36 not detected.
- if exist SIMPL-DOS_0.36.1.bat echo Legacy SIMPL-DOS version 0.36.1 detected.
- if not exist SIMPL-DOS_0.36.1.bat echo Legacy SIMPL-DOS version 0.36.1 not detected.
- if exist SIMPL-DOS_0.38.bat echo Legacy SIMPL-DOS version 0.38 detected.
- if not exist SIMPL-DOS_0.38.bat echo Legacy SIMPL-DOS version 0.38 not detected.
- if exist SIMPL-DOS_0.38.5.bat echo Legacy SIMPL-DOS version 0.38.5 detected.
- if not exist SIMPL-DOS_0.38.5.bat echo Legacy SIMPL-DOS version 0.38.5 not detected.
- if exist SIMPL-DOS_0.4.bat echo Legacy SIMPL-DOS version 0.4 detected.
- if not exist SIMPL-DOS_0.4.bat echo Legacy SIMPL-DOS version 0.4 not detected.
- if exist SIMPL-DOS_0.42.bat echo Legacy SIMPL-DOS version 0.42 detected.
- if not exist SIMPL-DOS_0.42.bat echo Legacy SIMPL-DOS version 0.42 not detected.
- if exist SIMPL-DOS_0.43.bat echo Legacy SIMPL-DOS version 0.43 detected.
- if not exist SIMPL-DOS_0.43.bat echo Legacy SIMPL-DOS version 0.43 not detected.
- if exist SIMPL-DOS_0.44.bat echo Legacy SIMPL-DOS version 0.44 detected.
- if not exist SIMPL-DOS_0.44.bat echo Legacy SIMPL-DOS version 0.44 not detected.
- if exist SIMPL-DOS_0.45.bat echo Legacy SIMPL-DOS version 0.45 detected.
- if not exist SIMPL-DOS_0.45.bat echo Legacy SIMPL-DOS version 0.45 not detected.
- if exist SIMPL-DOS_0.46.bat echo Legacy SIMPL-DOS version 0.46 detected.
- if not exist SIMPL-DOS_0.46.bat echo Legacy SIMPL-DOS version 0.46 not detected.
- if exist SIMPL-DOS_0.47.bat echo SIMPL-DOS version 0.47 detected.
- if not exist SIMPL-DOS_0.47.bat echo SIMPL-DOS version 0.47 not detected. TXTED is disabled.
- goto newcom
- :TxtEdErr
- echo TXTED cannot start: SIMPL-DOS file not found.
- echo Rename the file SIMPL is run to "%batchname%" and TXTED will work.
- goto newcom
- :PerformUpdateCom
- title %versionlabel% (Runtime Updates)
- cls
- echo.
- echo This program allows you to update SIMPL-DOS while it is running.
- echo Please save your edits to the SIMPL-DOS file and press any key.
- echo SIMPL-DOS will then adapt itself to the newly applied updates.
- echo You will then be returned to the prompt.
- echo.
- echo NOTE: SIMPL-DOS might output an Unrecognized Command error.
- echo You can safely ignore this error.
- echo.
- pause >NUL
- echo Updating...
- echo.
- echo.
- cls
- echo.
- echo SIMPL-DOS has been updated successfully!
- echo All changes have automatically taken effect.
- echo Unless changes were made to the boot-up code,
- echo you do not need to restart.
- echo.
- goto newcom
- :webcom
- echo Internet-enabled Commands:
- echo.
- echo OPENB = Open the website of your choice.
- echo WIKILDR = Starts your default browser with a URL to the Wikipedia article of your choice.
- echo GSEARCH = Launches a google search of the specified query.
- echo TRACEROUTE = Allows you to view the IP path to a hostname or IP address
- echo.
- goto newcom
- :googlecom
- title %versionlabel% (Google Search)
- echo Google Search
- echo by fire219
- echo.
- echo Type what you wish to search for:
- set /p gsearch=
- set gsearch=%gsearch: =+%
- start https://www.google.com/search?q=%gsearch%
- goto newcom
- :tracertcom
- title %versionlabel% (Trace Route)
- echo Trace Route
- echo by WindozeNT
- echo.
- echo Specify an IP address or hostname:
- set /p %tracertadr%=
- tracert "%tracertadr%"
- echo.
- goto newcom
- :ShutdownSyscom
- if not exist C:\SIMPLsettings\adminpass.sss goto NoAdminSS
- echo Admin password is required to access this program.
- echo Enter password, or type "back" to go back.
- :badSSpass
- set /p APT=
- set /p AdminPassword=<"C:\SIMPLsettings\adminpass.sss"
- if /i "%APT%"=="back" goto newcom
- if %APT%==%AdminPassword% goto noadminSS
- echo Incorrect Password! Try again.
- goto badSSpass
- :NoAdminSS
- title %versionlabel% (System Shudown Utility)
- echo System Shutdown Utility
- echo by WindozeNT
- echo.
- goto ShtDwnOpts
- :ShtDwnOpts
- echo Would you like to:
- echo A: Log off B: Shut Down C: Restart
- echo D: Hibernate E: Restart Windows and programs
- echo F: Abort current shut down event
- echo G: Exit
- set /p shtdwnopt=
- if /i "%shtdwnopt%"=="A" goto ShtDwnLogOff
- if /i "%shtdwnopt%"=="B" goto ShtDwnShutDown
- if /i "%shtdwnopt%"=="C" goto ShtDwnRestart
- if /i "%shtdwnopt%"=="D" goto ShtDwnHibernate
- if /i "%shtdwnopt%"=="E" goto ShtDwnRestartAll
- if /i "%shtdwnopt%"=="F" goto ShtDwnAbort
- if /i "%shtdwnopt%"=="G" goto newcom
- echo Not a valid option!
- goto ShtDwnOpts
- :ShtDwnLogOff
- echo.
- echo Are you sure you want to log off (Y/N)?
- set /p shtdwn=
- if /i "%shtdwn%"=="N" goto newcom
- shutdown /l
- echo Logging off...
- goto newcom
- :ShtDwnShutDown
- echo.
- echo Shut Down - Enter Time-Out Period (in seconds):
- set /p shtdwn=
- shutdown /s /t %shtdwn% /c "SIMPL-DOS initiated a shut down."
- echo Shutting down...
- goto newcom
- :ShtDwnRestart
- echo.
- echo Restart - Enter Time-Out Period (in seconds):
- set /p shtdwn=
- shutdown /r /t %shtdwn% /c "SIMPL-DOS initiated a restart."
- echo Restarting...
- goto newcom
- :ShtDwnHibernate
- echo.
- echo Are you sure you want to hibernate (Y/N)?
- set /p shtdwn=
- if /i "%shtdwn%"=="N" goto newcom
- shutdown /h
- echo Hibernating...
- goto newcom
- :ShtDwnRestartAll
- echo.
- echo Restart Windows And Applications - Enter Time-Out Period (in seconds):
- set /p shtdwn=
- shutdown /g /t %shtdwn% /c "SIMPL-DOS initiated a restart of Windows and applications."
- echo Restarting Windows and applications...
- goto newcom
- :ShtDwnAbort
- echo.
- shutdown /a
- echo Shut down aborted.
- goto newcom
- :PercentCalccom
- title %versionlabel% (Percent Calculator)
- echo.
- echo SIMPL-DOS Percent Calculator
- echo by WindozeNT
- echo.
- echo Enter first number:
- set /p num1=
- echo Enter second number:
- set /p num2=
- set /a percent=(%num1%*100)/%num2
- echo %num1% is %percent% percent of %num2%.
- echo.
- goto newcom
- :UserAccCom
- if not exist C:\SIMPLsettings\adminpass.sss goto NoAdminUAC
- echo Admin password is required to access this program.
- echo Enter password, or type "back" to go back.
- :badUACpass
- set /p APT=
- set /p AdminPassword=<"C:\SIMPLsettings\adminpass.sss"
- if /i "%APT%"=="back" goto newcom
- if %APT%==%AdminPassword% goto NoAdminUAC
- echo Incorrect Password! Try again.
- goto badUACpass
- :NoAdminUAC
- title %versionlabel% (User Account Manager)
- echo.
- echo User Account Manager
- echo by WindozeNT
- echo.
- echo User accounts installed:
- dir C:\SIMPLsettings\
- echo.
- if not exist C:\SIMPLsettings\adminpass.sss ( echo Admin password not set.)
- if exist C:\SIMPLsettings\adminpass.sss ( echo Admin password set.)
- if not exist C:\SIMPLsettings\NoAcc.sss ( echo User accounts are enabled.)
- if exist C:\SIMPLsettings\NoAcc.sss ( echo User accounts are disabled.)
- goto usermancom
- :usermancom
- echo.
- echo Would you like to Add, Edit, or Remove a user account or Change the admin password?
- echo You can also enable/disable accounts entirely by typing "ENABLE" or "DISABLE".
- echo You can exit by typing "Exit".
- echo.
- set /p usermanage=
- if /i "%usermanage%"=="Add" goto AddUserCom
- if /i "%usermanage%"=="Edit" goto EditUserCom
- if /i "%usermanage%"=="Remove" goto RemoveUserCom
- if /i "%usermanage%"=="Change" goto ChangeAdminCom
- if /i "%usermanage%"=="Exit" goto newcom
- if /i "%usermanage%"=="Enable" goto EnableUsercom
- if /i "%usermanage%"=="Disable" goto DisableUsercom
- echo Not a valid command.
- goto usermancom
- :AddUserCom
- echo Please enter your desired username:
- set /p user=
- echo %user% >C:\SIMPLsettings\%user%.sss
- echo Please enter your desired password:
- set /p pass=
- echo %pass% >C:\SIMPLsettings\%user%pass.sss
- echo.
- echo Account "%user%" created.
- pause
- goto NoAdminUAC
- :EditUserCom
- echo.
- echo Please enter the account's username:
- set /p olduser=
- if not exist "C:\SIMPLsettings\%olduser%.sss" goto UserNotExist
- echo Please enter the account's password:
- set /p pass=
- set /p usrpass=<"C:\SIMPLsettings\"%olduser%"pass.sss"
- if not %pass%==%usrpass% (
- echo Incorrect password!
- goto NoAdminUAC
- )
- echo.
- echo Type in new desired username:
- set /p user=
- del C:\SIMPLsettings\"%olduser%".sss >nul
- echo %user% >> C:\SIMPLsettings\%user%.sss
- echo Please enter your desired password:
- set /p pass=
- del C:\SIMPLsettings\"%olduser%"pass.sss >nul
- echo %pass% >> C:\SIMPLsettings\"%user%"pass.sss
- echo.
- echo Account "%olduser%" modified.
- pause
- goto NoAdminUAC
- :UserNotExist
- echo That account doesn't exist!
- goto usermancom
- :RemoveUserCom
- echo.
- echo Please enter the account's username:
- set /p user=
- if not exist "C:\SIMPLsettings\%user%.sss" goto UserNotExist
- echo Please enter the account's password:
- set /p pass=
- set /p usrpass=<"C:\SIMPLsettings\"%user%"pass.sss"
- if not %pass%==%usrpass% (
- echo Incorrect password!
- goto NoAdminUAC
- )
- del C:\SIMPLsettings\"%user%".sss >nul
- del C:\SIMPLsettings\"%user%"pass.sss >nul
- echo.
- echo Account "%user%" deleted.
- pause
- goto NoAdminUAC
- :ChangeAdminCom
- if not exist C:\SIMPLsettings\adminpass.sss (
- echo No admin password is set.
- goto NewAdminPasscom
- )
- echo Type current password:
- set /p APT=
- set /p AdminPassword=<"C:\SIMPLsettings\adminpass.sss"
- if %APT%==%AdminPassword% goto NewAdminPassCom
- echo Incorrect Password! Try again.
- pause
- goto NoAdminUAC
- :NewAdminPasscom
- echo.
- echo Please enter your new admin password:
- set /p AdminPassword=
- echo %AdminPassword% > C:\SIMPLsettings\adminpass.sss
- echo Admin account modified.
- pause
- goto NoAdminUAC
- :EnableUsercom
- del C:\SIMPLsettings\NoAcc.sss >nul
- echo User accounts are now enabled.
- echo Reboot to log on.
- pause
- goto NoAdminUAC
- :DisableUsercom
- del C:\SIMPLsettings\adminpass.sss
- %blankvar% > C:\SIMPLsettings\NoAcc.sss
- echo User accounts are now disabled.
- pause
- goto NoAdminUAC
- :SymLinkCom
- title %versionlabel% (Symbolic Link Creator)
- echo.
- echo Symbolic Link Creator v0.47
- echo by WindozeNT
- echo.
- echo NOTE: Requires at least Windows Vista!
- echo.
- :SymLinkSelect
- echo What kind of symbolic link do you want to create?
- echo A: Link to File B: Link to Directory C: Directory Junction
- echo D: Hard Link E: Exit
- set /p symlinktype=
- if /i "%symlinktype%"=="A" goto SymLinkFile
- if /i "%symlinktype%"=="B" goto SymLinkDir
- if /i "%symlinktype%"=="C" goto SymLinkDirJunct
- if /i "%symlinktype%"=="D" goto SymLinkHard
- if /i "%symlinktype%"=="E" goto newcom
- echo Not a valid option!
- goto SymLinkSelect
- :SymLinkFile
- echo Enter the path and name of the file you want to link to:
- set /p symlinktarget=
- echo Enter the path and name of the symbolic link:
- set /p symlinkpath=
- mklink "%symlinkpath%" "%symlinktarget%"
- echo Symbolic link created!
- goto newcom
- :SymLinkDir
- echo Enter the path and name of the directory you want to link to:
- set /p symlinktarget=
- echo Enter the path and name of the symbolic link:
- set /p symlinkpath=
- mklink /D "%symlinkpath%" "%symlinktarget%"
- echo Symbolic link created!
- goto newcom
- :SymLinkDirJunct
- echo Enter the path and name of the directory you want to link to:
- set /p symlinktarget=
- echo Enter the path and name of the symbolic link:
- set /p symlinkpath=
- mklink /J "%symlinkpath%" "%symlinktarget%"
- echo Symbolic link created!
- goto newcom
- :SymLinkHard
- echo Enter the path and name of the file/directory you want to link to:
- set /p symlinktarget=
- echo Enter the path and name of the symbolic link:
- set /p symlinkpath=
- mklink /H "%symlinkpath%" "%symlinktarget%"
- echo Symbolic link created!
- goto newcom
- :RunCMDCom
- title %versionlabel% (Run External Command)
- echo Type the command you want to run:
- set /p extcommand=
- start cmd /K %extcommand%
- goto newcom
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement