Hey guys, i did a second Batch program, called "Virtual Batch OS".
Version: 1.00
Intro of how to use it:
Menu:
HOW TO INSTALL IT:
1 - Download it (link below) and un-zip it into your Desktop, or where you want to be the folder of the program.
2 - Open the folder, and click "Launcher.bat".
3 - Done! Now your ready to use it.
This is funny. There's nothing dangerous about it xP.
@echo off
title Virtual Batch OS
echo.
echo Loading...
ping localhost -n 5 >nul
goto readme
:menu
cls
findstr /v "menu.txt" menu.txt
set /p input=/
if %input%==1 goto documents
if %input%==2 goto computer
if %input%==3 goto trash
if %input%==4 exit
cls
:documents
cls
findstr /v "documents.txt" documents.txt
set /p input=/
if %input%==1 goto hello
if %input%==2 start talk.vbs
if %input%==3 goto calculator
if %input%==4 goto menu
goto documents
cls
:hello
cls
echo.
echo Hello World!
ping locahost -n 5 >nul
goto documents
cls
:computer
cls
findstr /v "computer.txt" computer.txt
set /p input=/
if %input%==1 goto c
if %input%==2 goto d
if %input%==3 goto menu
cls
:c
cls
findstr /v "c.txt" c.txt
set /p input=/
if %input%==1 goto programs
if %input%==2 goto files
if %input%==3 goto computer
cls
:programs
cls
findstr /v "programs.txt" programs.txt
set /p input=/
if %input%==1 goto hello2
if %input%==2 start talk.vbs
if %input%==3 goto calculator2
if %input%==4 goto c
goto programs
cls
:files
cls
echo.
echo This is important files of your computer.
echo You don't have permission to access it.
echo.
pause
goto c
cls
cls
echo.
echo You need to insire a CD or a DVD.
echo.
pause
goto computer
cls
:trash
cls
echo.
echo The Trash Can is empty.
echo.
pause
goto menu
cls
:calculator
cls
:start
set /p num1=Please set first number:
set /p num2=Please set second number:
:not_valid
echo 1 for addition
echo 2 for subtraction
echo 3 for division (rounded)
echo 4 for multiplication
echo 5 for new numbers
set /p operation=Please enter a choice number and press enter:
If %operation%==1 goto addition
if %operation%==2 goto subtraction
If %operation%==3 goto division
If %operation%==4 goto multiplication
If %operation%==5 goto start
echo That wasn’t a valid choice please try again
goto not_valid
:addition
set /a num3=%num1%+%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:subtraction
set /a num3=%num1%-%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:division
set /a num3=%num1%/%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:multiplication
set /a num3=%num1%*%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:end
goto documents
cls
:readme
cls
echo.
echo Welcome to the Virual Batch OS.
echo This is a simulation of a operating system (OS), made with Batch Language.
echo.
echo To enter a file, type the number at the left side of the file name that you want to access.
echo.
echo To run the Virual Batch OS, it's need Windows XP or better that's have CMD...
echo.
echo Made by: lolzvid, Year: 2012.
echo Hope you like the Virual Batch OS!
echo.
pause
goto menu
cls
:hello2
cls
echo.
echo Hello World!
ping locahost -n 5 >nul
goto programs
cls
:calculator2
cls
:start
set /p num1=Please set first number:
set /p num2=Please set second number:
:not_valid
echo 1 for addition
echo 2 for subtraction
echo 3 for division (rounded)
echo 4 for multiplication
echo 5 for new numbers
set /p operation=Please enter a choice number and press enter:
If %operation%==1 goto addition
if %operation%==2 goto subtraction
If %operation%==3 goto division
If %operation%==4 goto multiplication
If %operation%==5 goto start
echo That wasn’t a valid choice please try again
goto not_valid
:addition
set /a num3=%num1%+%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:subtraction
set /a num3=%num1%-%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:division
set /a num3=%num1%/%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:multiplication
set /a num3=%num1%*%num2%
echo %num3%
set /p again=Go Again (y/n)?:
If %again%==y goto start
If %again%==n goto end
:end
goto programs
cls
I've said that is a program that's simulate an OS...
**** you all of there
Please sir, this is NOT a program. Batch scripts arent programs. They are scrips for the CMD which is basically a way for advanced user to be able to do more with Windows.
That's enough folks.. OP can call his script whatever he wants. Crying over technicalities won't help.
@OP this is pretty interesting. It reminds me of how I got started programming (Picaxe BASIC for microcontrollers). I feel like you're skilled enough to move on to a more powerful language. I'd recommend you try to get started with Java as a beginner object oriented language. You could even try Python but there's not a whole lot you can do with it. The trickiest part of moving from a linear language like BASIC or bash scripting is understanding the whole "object oriented" programming concept. Once you master that, you'll be able to start writing much more advanced code. Look for some beginner's tutorials, they'll help a lot.
I know it purely to complain at people if they don't have Python3 installed.
{ My favorite scripting language is Python3 }
Meh. I won't be learning Python 3 until Django 1.6 (whenever they have real Python 3 support), as that is the biggest Python library I use, and they are currently on Python 2.
Rollback Post to RevisionRollBack
Windows 7 | Core i5 2500k | Patriot 8GB | HD 6870 | Capstone 450 | Z68ITX-A-E | Barracuda LP 2TB | Chronos 120GB | Lian Li PC-Q08B
Ultrasharp U2211H | Klipsch ProMedia 2.1 Klipsch S4 | RAT 9 | Das Keyboard
What did I just say? Batch is a Windows scripting language. Your "OS" requires another OS to run.
Don't even put "OS" in the title; it's misleading (not that I was expecting much when I read the title).
I don't even think your script simulates anything that matches the criteria to be considered an operating system.
It's very uncommon to need to do that. Most of the time people writing out things in batch like this are using it as a bad substitute for programming.
It's not an uncommon need, at least, not that I've seen. At the very least it can be used to start programs with specific arguments or prepare a shell environment (or prepare an environment for a program). Things like that shown in the OP are what it has been usurped into. Standard DOS Batch simply wouldn't allow this sort of thing, so people would have to graduate to at least QBASIC, which is actually a programming language. With NT Command Extensions, it's got a bunch of disgusting hackarounds that are, as you say, a bad substitute for actual programming.
I remember making a little batch rpg game a few years ago. It sucked. I suggest learning java or even c++ depending on the kinds of things you want to create. If you want to actually make an OS go with c++, but remember it will probably take you many years to create one on your own. Oh, and it's a pain to learn.
One thing I will say is that Batch programming is quick and easy, and if used correctly/ for its intended purpose you can use it to do some neat stuff.
Version: 1.00
Intro of how to use it:
Menu:
HOW TO INSTALL IT:
1 - Download it (link below) and un-zip it into your Desktop, or where you want to be the folder of the program.
2 - Open the folder, and click "Launcher.bat".
3 - Done! Now your ready to use it.
Download Link: http://www.mediafire...4n6p4ft4y1aay5b
Hope you like it!
P.S: There is no viruses... Scanned with Avira Anti-Virus.
I'll warn from some update!
?
But remember- this is not an OS or a program- its just a command line being run through CMD :/
i havent played minecraft in like 4 years lol
I know it purely to complain at people if they don't have Python3 installed.
{ My favorite scripting language is Python3 }
Fixed it for ya.
Dr. Sheldon Lee Cooper
At least Python is actually useful to learn.
It's useful for running batches of commands at once.
It's not, IMO, useful to learn programming concepts.
It's very uncommon to need to do that. Most of the time people writing out things in batch like this are using it as a bad substitute for programming.
Please sir, this is NOT a program. Batch scripts arent programs. They are scrips for the CMD which is basically a way for advanced user to be able to do more with Windows.
i havent played minecraft in like 4 years lol
@OP this is pretty interesting. It reminds me of how I got started programming (Picaxe BASIC for microcontrollers). I feel like you're skilled enough to move on to a more powerful language. I'd recommend you try to get started with Java as a beginner object oriented language. You could even try Python but there's not a whole lot you can do with it. The trickiest part of moving from a linear language like BASIC or bash scripting is understanding the whole "object oriented" programming concept. Once you master that, you'll be able to start writing much more advanced code. Look for some beginner's tutorials, they'll help a lot.
The same reason someone would learn Unix shell scripting. I give clients batch files instead of expecting them to enter all these commands.
Meh. I won't be learning Python 3 until Django 1.6 (whenever they have real Python 3 support), as that is the biggest Python library I use, and they are currently on Python 2.
Ultrasharp U2211H |
Klipsch ProMedia 2.1Klipsch S4 | RAT 9 | Das KeyboardLol, thanks for the tip.
It's not an uncommon need, at least, not that I've seen. At the very least it can be used to start programs with specific arguments or prepare a shell environment (or prepare an environment for a program). Things like that shown in the OP are what it has been usurped into. Standard DOS Batch simply wouldn't allow this sort of thing, so people would have to graduate to at least QBASIC, which is actually a programming language. With NT Command Extensions, it's got a bunch of disgusting hackarounds that are, as you say, a bad substitute for actual programming.
i havent played minecraft in like 4 years lol