Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- title Osmium 64
- mode 50,18
- color 0f
- set color=0f
- set theme=Original
- if exist Notepad (
- if exist Software (
- if exist Saves (
- cd Saves
- goto login
- ) else goto installer
- ) else goto installer
- ) else goto installer
- if exist proof.txt (
- cd Saves
- goto login
- ) else goto installer
- :installer
- set loader=
- cls
- echo.
- echo System Installer
- echo.
- echo With your premission, Osmium 64 will create 4
- echo folders and 1 file necessary for the OS to run.
- echo These will be created in the same folder that
- echo Osmium 64 is in.
- echo.
- choice /c:yn /n /m "Permission? (Y/N) "
- if "%errorlevel%" =="2" exit
- if "%errorlevel%" =="1" (
- mkdir "Osmium 64"
- )
- :bypass
- cd Osmium 64
- if not exist Saves mkdir Saves
- if not exist Notepad mkdir Notepad
- if not exist Software mkdir Software
- if not exist proof.txt (echo.) > proof.txt
- cls
- echo.
- echo System Installer
- echo.
- if exist "Osmium 64" echo Installation complete! Please move the Osmium 64 program into the Osmium 64 folder to finalize.
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- exit
- )
- :login
- mode 50,25
- cd ..
- cd Saves
- color 0f
- set rem=
- set remdate=
- set user=
- set password=
- set color=0f
- set u=
- cls
- echo.
- echo Login
- echo.
- echo G] Log in as guest
- echo H] Help
- echo X] Exit
- echo.
- echo --Saves--
- dir /b
- echo.
- set /p u="Enter your username: "
- if not defined u goto login
- if /i "%u%" =="H" goto help
- if /i "%u%" =="G" (
- set user=Guest User
- set password=
- goto deskm
- )
- if /i "%u%" =="X" exit
- if not exist "%u%" (
- goto logincreate
- ) else goto logincontinue
- :logincreate
- echo.
- echo This user does not exist.
- echo.
- choice /c:yn /n /m "Create one? (Y/N) "
- if "%errorlevel%" =="2" goto login
- if "%errorlevel%" =="1" goto create
- goto login
- :logincontinue
- cd "%u%"
- < info.sav (
- set /p user=
- set /p password=
- set /p color=
- set /p theme=
- )
- < reminder.sav (
- set /p rem=
- set /p remdate=
- )
- cd ..
- if /i "%u%" =="%user%" goto enterpass
- goto login
- :help
- mode 50,27
- cls
- echo.
- echo Help
- echo.
- echo Most of the Osmium 64 user interface is
- echo "instant response", which means that as soon as
- echo you press a valid key, the action happens. When
- echo you can type multiple characters in the same
- echo input, that means that it is a "delayed
- echo response". This means that you just have to hit
- echo ENTER in order for the action to carry out.
- echo.
- echo When in an "instant
- echo response" type menu, pressing an invalid key
- echo will result in a sharp tone. A fire alarm is
- echo more piercing, so there is little reason to
- echo thoughtfully mistake it for that.
- echo.
- echo Whenever you press a valid key in an "instant
- echo response" menu and it responds with text at the
- echo bottom of the screen, simply press any key to
- echo continue. (Although that is evident to some, I
- echo must make this program easy to use for all.)
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- goto login
- :create
- mode 50,18
- cd ..
- cd Saves
- set user=
- cls
- echo.
- echo B] Go back
- echo.
- echo Create User
- echo.
- set /p user="Enter a username: "
- if not defined user goto create
- if /i "%user%" =="B" (
- set user=
- goto login
- )
- if /i "%user%" =="Guest User" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="C" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="G" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="X" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="H" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if exist "%user%" (
- echo.
- echo This user already exists
- pause >nul
- goto create
- )
- :cpass
- set password=
- cls
- echo.
- echo Create Password
- echo.
- set /p password="Enter a secure password: "
- if not defined password goto cpass
- goto deskm
- :enterpass
- set enter=
- if not defined password goto deskm
- cls
- echo.
- echo Enter Password
- echo.
- set /p enter="Enter your password: "
- if not defined enter goto enterpass
- if "%enter%" =="%password%" goto deskm
- echo.
- echo Incorrect
- echo [PRESS ANY KEY]
- pause >nul
- goto login
- :deskm
- mode 50,18
- :desk
- color %color%
- cls
- echo.
- echo Logged in as %user%
- echo.
- if /i "%remdate%" =="%date%" (
- echo Today's Reminder: %rem%
- ) else echo Today's Reminder: NONE
- echo %date% - %time%
- echo.
- echo i] System Information
- echo P] Programs
- echo S] Settings
- echo X] Log out
- echo.
- choice /c:isxp /n
- if "%errorlevel%" =="4" goto programs
- if "%errorlevel%" =="3" (
- if "%user%" =="Guest User" goto login
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- goto login
- )
- if "%errorlevel%" =="2" goto settings
- if "%errorlevel%" =="1" goto info
- goto desk
- :info
- mode 50,40
- cls
- echo.
- echo Osmium 64
- echo Version: 1.3.5
- echo.
- echo Username: %user%
- echo Current color theme: %theme%
- echo.
- echo Version Log
- echo.
- echo 1.3.5 Released - 10/26/2017
- echo -Cleaned up all menus
- echo -Added autosave
- echo.
- echo 1.3.4 Released - 10/18/2017
- echo -Added some wiggle room in the software and
- echo login menus
- echo.
- echo 1.3.3 Released - 10/18/2017
- echo -Added help in login menu
- echo -Minor changes in software and menus
- echo.
- echo 1.3.2 Released - 10/16/2017
- echo -Small text change in memory wipe menu
- echo.
- echo 1.3.1 Released - 10/14/2017
- echo -Lots of bug-fixes
- echo -Cleaned up color menu again
- echo.
- echo 1.3 Released - 10/13/2017
- echo -Added reminder widget in home screen
- echo -Added option to disable password
- echo -Added guest user
- echo -Added ability to wipe user memory
- echo -Added internet shortcuts
- echo -Added installer
- echo -Removed unit charts
- echo ...
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- cls
- echo.
- echo ...
- echo -Removed secret menu
- echo -Removed date/time menus
- echo -Cleaned up stopwatch
- echo -Cleaned up Notepad
- echo -Cleaned up user profile management
- echo -Cleaned up color setting
- echo -Cleaned up glitchy usernames
- echo -States which user is logged on
- echo.
- echo 1.2.9 Released - 10/6/2017
- echo -Minor changes regarding spaces
- echo -Note: Unit references incomplete
- echo.
- echo 1.2 Released - 9/22/2017
- echo -Added secret menu (HINT: KONAMI)
- echo -Note: Unit references incomplete
- echo.
- echo 1.1 Released - 8/22/2017
- echo -Menu aesthetics changed
- echo -Menu input systems now allow for faster work
- echo -Fixed bugs
- echo -Note: Unit references incomplete
- echo.
- echo 1.0 Released - 7/27/2017
- echo -Note: Unit references incomplete
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- goto deskm
- :settings
- cls
- echo.
- echo Settings
- echo.
- echo C] Themes
- echo P] Password Protection
- echo U] Change Username
- echo W] Wipe Memory
- echo B] Go back
- echo.
- choice /c:cpubw /n
- if "%errorlevel%" =="5" (
- if "%user%" =="Guest User" (
- echo.
- echo This feature is locked when logged in as Guest.
- echo [PRESS ANY KEY]
- pause >nul
- goto settings
- )
- goto wipe
- )
- if "%errorlevel%" =="4" goto deskm
- if "%errorlevel%" =="3" (
- if "%user%" =="Guest User" (
- echo.
- echo This feature is locked when logged in as Guest.
- echo [PRESS ANY KEY]
- pause >nul
- goto settings
- )
- goto rename
- )
- if "%errorlevel%" =="2" (
- if "%user%" =="Guest User" (
- echo.
- echo This feature is locked when logged in as Guest.
- echo [PRESS ANY KEY]
- pause >nul
- goto settings
- )
- goto modp
- )
- if "%errorlevel%" =="1" goto colorthemes
- goto settings
- :wipe
- cd ..
- cd Saves
- cls
- echo.
- echo Wipe Memory
- echo.
- echo D] Delete your user profile
- echo R] Clear reminders
- echo B] Go back
- echo.
- choice /c:drb /n
- if "%errorlevel%" =="3" goto settings
- if "%errorlevel%" =="2" goto delrem
- if "%errorlevel%" =="1" goto deluser
- goto wipe
- :deluser
- if not exist "%user%" goto delusererror
- if not defined password (
- rd /s /q "%user%"
- echo.
- echo Profile deleted
- pause >nul
- goto login
- )
- cd ..
- cd Saves
- set deluser=
- cls
- echo.
- echo Delete User Profile
- echo.
- echo B] Go back
- echo.
- echo Enter your password to delete %user%
- echo.
- set /p deluser=">"
- if not defined deluser goto deluser
- if /i "%deluser%" =="B" goto wipe
- if not "%deluser%" =="%password%" (
- echo.
- echo Incorrect password
- pause >nul
- goto deluser
- )
- rd /s /q "%user%"
- echo.
- echo Profile deleted
- pause >nul
- goto login
- :delusererror
- cls
- echo.
- echo Delete User Profile
- echo.
- echo ERROR
- echo.
- echo There is no profile to delete. First, you must
- echo create a save. (See Settings)
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- goto wipe
- :delrem
- if not defined password (
- set remdate=
- set rem=
- if exist "%user%" (
- cd %user%
- (echo.) > reminder.sav
- )
- echo.
- echo Deleted
- pause >nul
- goto wipe
- )
- cd ..
- cd Saves
- set delrem=
- cls
- echo.
- echo Clear Reminders
- echo.
- echo B] Go back
- echo.
- set /p delrem="Enter your password: "
- if not defined delrem goto delrem
- if /i "%delrem%" =="B" goto wipe
- if not "%delrem%" =="%password%" (
- echo.
- echo Incorrect password
- pause >nul
- goto delrem
- )
- set remdate=
- set rem=
- if exist "%user%" (
- cd %user%
- (echo.) > reminder.sav
- )
- echo.
- echo Deleted
- pause >nul
- goto wipe
- :rename
- cd ..
- cd Saves
- cls
- echo.
- echo Change Username (Current Username: %user%)
- echo.
- echo B] Go back
- echo.
- set /p u=">"
- if not defined u goto rename
- if /i "%u%" =="B" goto settings
- if /i "%user%" =="Guest User" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="C" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="G" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="X" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if /i "%user%" =="H" (
- echo.
- echo This username is prohibited
- pause >nul
- goto create
- )
- if exist "%u%" (
- echo.
- echo This username is already in use
- pause >nul
- goto rename
- )
- set user=%u%
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- goto settings
- :colorthemes
- color %color%
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- cls
- echo.
- echo Themes
- echo.
- echo B] Go back ^| R] Reset color
- echo.
- echo A] Autumn ^| C] Commodore
- echo J] Jungle ^| K] Blue Sky
- echo S] Sparks ^| M] Matrix
- echo N] Sunset ^| V] Violets
- echo D] Candy ^| E] Error
- echo O] Ocean ^|
- echo.
- choice /c:ajsnckmvbrdeo /n
- if "%errorlevel%" =="13" (
- set color=09
- set colortheme=Ocean
- )
- if "%errorlevel%" =="12" (
- set color=cf
- set theme=Error
- )
- if "%errorlevel%" =="11" (
- set color=bc
- set theme=Candy
- )
- if "%errorlevel%" =="10" (
- set color=0f
- set theme=Original
- )
- if "%errorlevel%" =="9" goto settings
- if "%errorlevel%" =="8" (
- set color=5a
- set theme=Violets
- )
- if "%errorlevel%" =="7" (
- set color=0a
- set theme=Matrix
- )
- if "%errorlevel%" =="6" (
- set color=f9
- set theme=Blue Sky
- )
- if "%errorlevel%" =="5" (
- set color=1f
- set theme=Commodore
- )
- if "%errorlevel%" =="4" (
- set color=ce
- set theme=Sunset
- )
- if "%errorlevel%" =="3" (
- set color=0e
- set theme=Sparks
- )
- if "%errorlevel%" =="2" (
- set color=2e
- set theme=Jungle
- )
- if "%errorlevel%" =="1" (
- set color=ec
- set theme=Autumn
- )
- goto colorthemes
- :modp
- if not defined password goto modpn
- cls
- echo.
- echo Password Protection
- echo.
- echo P] Change Password
- echo D] Disable Password
- echo B] Go back
- echo.
- choice /c:pbd /n
- if "%errorlevel%" =="3" goto disable
- if "%errorlevel%" =="2" goto settings
- if "%errorlevel%" =="1" goto modpc
- goto modp
- :modpn
- if defined password goto modp
- cls
- echo.
- echo Password Protection
- echo.
- echo D] Enable Password
- echo B] Go back
- echo.
- choice /c:db /n
- if "%errorlevel%" =="2" goto settings
- if "%errorlevel%" =="1" goto cpassdesk
- goto modpn
- :cpassdesk
- set password=
- cls
- echo.
- echo Create Password
- echo.
- set /p password="Enter a secure password: "
- if not defined password goto cpassdesk
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- goto modp
- :disable
- set dis=
- cls
- echo.
- echo Disable Password
- echo.
- echo B] Go back
- echo.
- set /p dis="Password: "
- if not defined dis goto disable
- if /i "%dis%" =="B" goto modp
- if "%dis%" =="%password%" (
- set password=
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- goto modpn
- )
- echo.
- echo Incorrect password
- echo [PRESS ANY KEY]
- pause >nul
- goto disable
- )
- goto modn
- :modpc
- set temp=
- set tempc=
- cls
- set /p temp="Enter your password: "
- if not defined temp goto modpc
- if not "%temp%" =="%password%" (
- echo Incorrect password.
- pause >nul
- goto modp
- )
- :tempc
- set tempc=
- cls
- set /p tempc="Enter your new password: "
- if not defined tempc goto tempc
- set password=%tempc%
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- goto settings
- :programs
- cls
- echo.
- echo Programs
- echo.
- echo U] Utilities
- echo S] Software
- echo N] Notepad
- echo B] Go back
- echo.
- choice /c:usnb /n
- if "%errorlevel%" =="4" goto deskm
- if "%errorlevel%" =="3" goto name
- if "%errorlevel%" =="2" goto sware
- if "%errorlevel%" =="1" goto utilities
- goto programs
- :utilities
- set stopwatch=0
- cls
- echo.
- echo Utilities
- echo.
- echo X] Calculator ^| S] Stopwatch
- echo R] Reminders ^| I] Internet Shortcuts
- echo B] Go back
- echo.
- choice /c:xrsbi /n
- if "%errorlevel%" =="5" goto internet
- if "%errorlevel%" =="4" goto programs
- if "%errorlevel%" =="3" goto stopwatch
- if "%errorlevel%" =="2" goto reminder
- if "%errorlevel%" =="1" goto calc
- goto utilities
- :calc
- set prob=
- set sol=
- cls
- echo.
- echo Calculator
- echo.
- echo + Addition ^| - Subtraction
- echo * Multiplication ^| / Division
- echo.
- echo B] Go back
- echo.
- set /p prob=">"
- if /i "%prob%" =="B" goto utilities
- set /a sol=%prob%
- echo %prob% = %sol%
- echo [PRESS ANY KEY]
- pause >nul
- goto calc
- :reminder
- if "%user%" =="Guest User" (
- echo.
- echo This feature is locked when logged in as Guest.
- echo [PRESS ANY KEY]
- pause >nul
- goto utilities
- )
- cd ..
- cd Saves
- if not exist "%user%" mkdir "%user%"
- cd %user%
- (
- echo %user%
- if defined password echo %password%
- if not defined password echo.
- echo %color%
- echo %theme%
- ) > info.sav
- (
- if defined rem echo %rem%
- if not defined rem echo.
- if defined remdate echo %remdate%
- if not defined remdate echo.
- ) > reminder.sav
- set reminput=
- set remdateinput=
- cls
- echo.
- echo Reminders - You can ONLY have ONE at a time!
- echo.
- echo B] Go back
- echo.
- if /i "%remdate%" =="%date%" (
- echo Today's Reminder: %rem%
- ) else echo Today's Reminder: NONE
- echo.
- set /p reminput="Type a reminder here: "
- if not defined reminput goto reminder
- if /i "%reminput%" =="B" goto utilities
- set rem=%reminput%
- echo.
- echo Example: %date%
- set /p remdateinput="Set a date for that: "
- if not defined remdateinput goto reminder
- if /i "%remdateinput%" =="B" goto reminder
- set remdate=%remdateinput%
- goto reminder
- :stopwatch
- cls
- echo.
- echo Stopwatch
- echo.
- echo S] Start %stopwatch%
- echo R] Reset
- echo B] Go back
- echo.
- choice /c:sbr /n
- if "%errorlevel%" =="3" set stopwatch=0
- if "%errorlevel%" =="2" goto utilities
- if "%errorlevel%" =="1" goto startstpwch
- goto stopwatch
- :startstpwch
- set /a stopwatch=%stopwatch% + 1
- cls
- echo.
- echo Stopwatch
- echo.
- echo X] Stop %stopwatch%
- echo R] Reset
- echo B] Go back
- echo.
- choice /c bxcr /n /t 1 /d c
- if "%errorlevel%" =="4" set stopwatch=0
- if "%errorlevel%" =="3" goto startstpwch
- if "%errorlevel%" =="2" goto stopwatch
- if "%errorlevel%" =="1" goto utilities
- goto startstpwch
- :internet
- cls
- echo.
- echo Internet Shortcuts
- echo.
- echo B] Go back
- echo.
- echo O] Osmium Programming Group
- echo Y] YouTube
- echo G] Google
- echo M] Gmail
- echo N] Notepad ++
- echo.
- choice /c:oygmnb /n
- if "%errorlevel%" =="6" goto utilities
- if "%errorlevel%" =="5" start https://notepad-plus-plus.org/
- if "%errorlevel%" =="4" start https://mail.google.com
- if "%errorlevel%" =="3" start https://www.google.com/
- if "%errorlevel%" =="2" start https://www.youtube.com/
- if "%errorlevel%" =="1" start https://osmiumcorp.wordpress.com/
- goto internet
- :sware
- mode 50,25
- cd ..
- cd Software
- set swr=
- cls
- echo.
- echo Software
- echo.
- echo H] Help
- echo B] Go back
- echo.
- echo --Programs--
- dir /b
- echo.
- set /p swr="Enter a program to run: "
- if not defined swr goto sware
- if /i "%swr%" =="B" (
- mode 50,18
- goto programs
- )
- if /i "%swr%" =="H" goto helpsware
- if exist "%swr%" (
- call %swr%
- mode 50,18
- color %color%
- title Osmium 64
- cd ..
- cd Saves
- goto sware
- )
- echo.
- echo This file does not exist
- echo [PRESS ANY KEY]
- pause >nul
- goto sware
- :helpsware
- cls
- echo.
- echo Help
- echo.
- echo Software
- echo.
- echo To add software to the list below, install some
- echo BATCH programs (links found at Osmium
- echo Programming Group website) and move them into
- echo the "Software" folder found inside the "Osmium
- echo 64" folder.
- echo.
- echo [PRESS ANY KEY]
- pause >nul
- goto sware
- :name
- cd ..
- cd Notepad
- set name=
- cls
- echo.
- echo Notepad
- echo.
- echo B] Go back
- echo.
- set /p name="Enter your file name: "
- if not defined name goto name
- if /i "%name%" =="B" goto deskm
- (
- echo %date%
- echo.
- ) > "%name%".txt
- goto edit
- :edit
- mode 50,30
- set txt=
- cls
- echo.
- echo Notepad - Type Z to create a new file.
- echo.
- echo B] Go back
- echo.
- echo You are editing %name%.txt
- echo.
- < "%name%".txt (
- set /p a=
- set /p b=
- set /p spec=
- )
- if defined spec type "%name%".txt
- set /p txt=
- if not defined txt goto edit
- if /i "%txt%" =="Z" (
- < "%name%".txt (
- set /p a=
- set /p b=
- set /p spec=
- )
- if not defined spec del /q "%name%".txt
- goto name
- )
- if /i "%txt%" =="B" (
- < "%name%".txt (
- set /p a=
- set /p b=
- set /p spec=
- )
- if not defined spec del /q "%name%".txt
- goto deskm
- )
- (echo %txt%) >> "%name%".txt
- goto edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement