Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :password
- @echo off
- title
- cls
- echo.
- set /p username= Username:
- if %username% equ OS-2 goto password01
- goto password
- :password01
- set /p password= Password:
- if %password% equ password goto start
- goto password
- :start
- @echo off
- color 0F
- cls
- title OS-2 text-based DOS shell v.2.1
- echo -----------------------------------
- echo : OS-2 v.2.1 for Windows PC :
- echo : Type 'help' for more info :
- echo -----------------------------------
- rem user input below
- :os
- echo.
- set /p os= OS-2)
- if %os% equ clearscreen goto cls
- if %os% equ help goto help
- if %os% equ version goto ver
- if %os% equ view goto view
- if %os% equ change goto cd
- if %os% equ time goto timedisplay
- if %os% equ restart goto start
- if %os% equ cmd goto cmd
- if %os% equ open goto open
- if %os% equ programs goto programlist
- if %os% equ logout goto password
- if %os% equ NumberRandomizer goto numrand
- if %os% equ Calculator goto calc
- if %os% equ TextEdit goto textedit
- if %os% equ no goto yes
- if %os% equ changelog goto changelog
- if %os% equ exit goto exit
- if %os% equ newfolder goto md
- if %os% equ delete goto del
- if %os% equ move goto move
- rem help commands
- if %os% equ helpview goto help01
- if %os% equ helpchange goto help02
- goto error
- :error
- goto os
- :del
- echo.
- echo Delete what?
- echo (type 'goback' to cancel deletion.)
- set /p delete=
- if %delete% equ goback goto os
- goto del01
- :del01
- del %delete%
- goto os
- :move
- echo.
- echo Move what? (include file extension)
- set /p what= OS-2)
- goto move01
- :move01
- echo.
- echo To?
- set /p to= OS-2)
- goto move02
- :move02
- move /-y "%what%" "%to%"
- goto os
- :md
- echo.
- echo Are you sure you want to create a new folder? (Y/N)
- echo.
- set /p choice= OS-2)
- if %choice% equ y goto md01
- if %choice% equ Y goto md01
- goto os
- :md01
- echo.
- echo Folder name:
- set /p name= OS-2)
- goto md02
- :md02
- md %name%
- goto os
- :yes
- echo.
- echo Yes.
- goto os
- :exit
- exit
- :calc
- echo.
- echo OS-2 Calculator
- echo.
- ECHO * - Multiplication
- ECHO + - Addition
- ECHO _ - Subtraction
- ECHO / - Division
- echo.
- set /p UDefine=
- set /a UDefine=%UDefine%
- echo.
- echo %UDefine%
- echo.
- goto os
- :numrand
- echo.
- echo Your random number is %random%
- echo You can use this as a password, or for board games!
- goto os
- :textedit
- echo.
- echo TextEdit OS-2
- echo 1. Create new (text) file
- echo 2. View the contents of a (text) file.
- echo 3. Exit to OS-2 Shell
- echo.
- set /p choice= TextEdit)
- if %choice% equ 1 goto new
- if %choice% equ 2 goto open01
- if %choice% equ 3 goto os
- goto os
- :new
- echo.
- echo Enter the name of your new file;
- echo.
- set /p name=
- goto new01
- :new01
- cls
- echo.
- echo Enter the contents of your file;
- echo.
- set /p content=
- goto save
- :save
- echo %content%>>%name%.txt
- goto os
- :open01
- echo.
- echo Type the name of the (text) file you are trying to open.
- set /p file=
- echo.
- FOR /F "tokens=*" %%i IN (%file%.txt) DO @ECHO %%i
- goto os
- :changelog
- echo.
- echo Version 1.0:
- echo OS-2 base configuration.
- echo 'view' list is too long.
- echo.
- echo Version 1.5:
- echo Added Simple_OS programs to OS-2 to help round out program selection.
- echo Added username and password screen on startup.
- echo Added 'OS-2)' plate to all shell commands.
- echo.
- echo Version 2.0:
- echo Added deletion functions.
- echo.
- echo Version 2.1:
- echo Added ability to move files.
- echo Added ability to open text files inside OS-2, opposed to Notepad.
- echo.
- echo Version 2.1.1:
- echo Changed all refrences to words 'operating system' to 'DOS shell.'
- goto os
- :timedisplay
- echo.
- echo %time%
- goto os
- :programlist
- echo.
- echo (to open programs, just type the name into the shell)
- echo - Utility
- echo [NumberRandomizer]
- echo [Calculator]
- echo [TextEdit]
- echo [changelog]
- goto os
- :cd
- echo.
- echo Enter the folder name
- echo (or type '..' to go up)
- set /p dir=
- goto cd01
- :cd01
- cd %dir%
- :view
- dir/w
- goto os
- :ver
- echo.
- echo OS-2 text-based DOS shell v.1.5
- echo Utilizes code from Simple_OS_1.1.5
- echo CMD (c) 2018 Microsoft Corporation.
- echo By Robert J. Epps IV
- goto os
- rem help message below
- :open
- echo.
- echo Open what?
- set /p open=
- if %open% equ back goto os
- if %open% equ tetris goto tetris
- goto open1
- :open1
- start %open%
- goto os
- :cls
- cls
- goto os
- :help
- echo.
- echo Common commands in using OS-2;
- echo help - Open the help menu
- echo view - View your current directory
- echo change (directory) - Change your current directory.
- echo clearscreen - Clears the screen.
- echo exit - Exit the program.
- echo programs - Displays the program list.
- echo version - Displays the software version.
- echo delete - Deletes any selected file.
- echo newfolder - Creates a new folder.
- echo logout - Returns to login screen
- echo move - Move a selected file to another location.
- echo You can type one of these commands after 'help' for more info. (e.g; helpview)
- goto os
- :help01
- rem view help
- echo.
- echo View commands;
- echo View allows you to view the directory you are currently in, and the contents of it.
- echo You can see folders, individual files, and shortcuts. Use the 'change' command to
- echo change your directory to another, even going up a level!
- echo.
- goto os
- :help02
- rem change help
- echo.
- echo Change commands;
- echo Change allows for the changing of directories. (e.g; I went from C:\Windows\Desktop to C:\Windows\Desktop\OS-2 !)
- goto os
- :cmd
- title Command Prompt
- echo.
- echo Advanced mode enabled.
- echo Entering Command Prompt.
- cmd
- rem Built-in games
- rem
Add Comment
Please, Sign In to add comment