This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-07-17 23:15:36

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

need .bat help?

need help with bat files, you've come to the right place!
here is a basic code.

Code:

 
@echo off
start iexplore.exe http://scratch.mit.edu/

.
bat is a abbreviated file extension, it means batch, which is DOS, or MS.
how to save a .bat file
1. of course, type the name and after that put a .bat
then under file types select "all files". then keep the encoding the same
2. click save.
3. done.


http://i47.tinypic.com/rrqe13.gif

Offline

 

#2 2011-07-17 23:18:37

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: need .bat help?

This belongs in miscellanious.  wink
Reporting to be moved.  smile


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2011-07-18 01:34:52

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: need .bat help?

ssss wrote:

This belongs in miscellanious.  wink
Reporting to be moved.  smile

This...moved.

^ Brevity for the win.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#4 2011-07-18 06:05:48

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: need .bat help?

here is a simple menu:

Code:

@echo off
cls
:menu
echo.
echo +====================================================+
echo +=PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.=+
echo +====================================================+
echo +                                                    +
echo + 1 - Open Notepad                                   +
echo + 2 - Open Calculator                                +
echo + 3 - Open Notepad and Calculator                    +
echo + 4 - exit                                           +
echo +====================================================+
echo + Type 1, 2, 3, or 4 then press ENTER:               +
echo +====================================================+
set /P M=
if %M%==1 goto note
if %M%==2 goto calc
if %M%==3 goto both
if %M%==4 goto eof
cls
goto :menu
:note
cd %windir%\system32
start notepad.exe
cls
goto menu
:calc
cd %windir%\system32
start calc.exe
cls
goto menu
:both
cd %windir%\system32
start notepad.exe
start calc.exe
cls
goto menu
:eof
exit

http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#5 2011-07-18 08:52:21

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: need .bat help?

Code:

@echo off
command
@echo on

Amazingly useful for your hacking exploits in computer class, where they disable the command prompt(so you can't delete system32  sad  lol  tongue )


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#6 2011-07-19 16:26:27

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: need .bat help?

nathanprocks wrote:

here is a simple menu:

Code:

@echo off cls :menu echo. echo +====================================================+ echo +=PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.=+ echo +====================================================+ echo + + echo + 1 - Open Notepad + echo + 2 - Open Calculator + echo + 3 - Open Notepad and Calculator + echo + 4 - exit + echo +====================================================+ echo + Type 1, 2, 3, or 4 then press ENTER: + echo +====================================================+ set /P M= if %M%==1 goto note if %M%==2 goto calc if %M%==3 goto both if %M%==4 goto eof cls goto :menu :note cd %windir%\system32 start notepad.exe cls goto menu :calc cd %windir%\system32 start calc.exe cls goto menu :both cd %windir%\system32 start notepad.exe start calc.exe cls goto menu :eof exit

wow i could not even make that without copy-paste :p


http://i47.tinypic.com/rrqe13.gif

Offline

 

#7 2011-07-20 02:00:25

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: need .bat help?

poemon1 wrote:

nathanprocks wrote:

here is a simple menu:

Code:

@echo off cls :menu echo. echo +====================================================+ echo +=PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.=+ echo +====================================================+ echo + + echo + 1 - Open Notepad + echo + 2 - Open Calculator + echo + 3 - Open Notepad and Calculator + echo + 4 - exit + echo +====================================================+ echo + Type 1, 2, 3, or 4 then press ENTER: + echo +====================================================+ set /P M= if %M%==1 goto note if %M%==2 goto calc if %M%==3 goto both if %M%==4 goto eof cls goto :menu :note cd %windir%\system32 start notepad.exe cls goto menu :calc cd %windir%\system32 start calc.exe cls goto menu :both cd %windir%\system32 start notepad.exe start calc.exe cls goto menu :eof exit

wow i could not even make that without copy-paste :p

It's pretty simple, just understand the code.

Also:

Code:

@echo off
:loop
open owjefowehfowieh.bat
loop

It's been a long time since I've coded in .bat, but I believe that code acts as, basically, a computer hijacker, forcing you to shut down. Unless you have owjefowehfowieh.bat as a file. Alternatively, instead of opening a nonexistant file, make it open itself. It will still crash the computer, but it's milder(read:doesn't crash as badly).


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

#8 2011-07-20 02:47:50

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: need .bat help?

helltank wrote:

poemon1 wrote:

nathanprocks wrote:

here is a simple menu:

Code:

@echo off cls :menu echo. echo +====================================================+ echo +=PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.=+ echo +====================================================+ echo + + echo + 1 - Open Notepad + echo + 2 - Open Calculator + echo + 3 - Open Notepad and Calculator + echo + 4 - exit + echo +====================================================+ echo + Type 1, 2, 3, or 4 then press ENTER: + echo +====================================================+ set /P M= if %M%==1 goto note if %M%==2 goto calc if %M%==3 goto both if %M%==4 goto eof cls goto :menu :note cd %windir%\system32 start notepad.exe cls goto menu :calc cd %windir%\system32 start calc.exe cls goto menu :both cd %windir%\system32 start notepad.exe start calc.exe cls goto menu :eof exit

wow i could not even make that without copy-paste :p

It's pretty simple, just understand the code.

Also:

Code:

@echo off
:loop
open owjefowehfowieh.bat
loop

It's been a long time since I've coded in .bat, but I believe that code acts as, basically, a computer hijacker, forcing you to shut down. Unless you have owjefowehfowieh.bat as a file. Alternatively, instead of opening a nonexistant file, make it open itself. It will still crash the computer, but it's milder(read:doesn't crash as badly).

i made a quiz game with green text and thats about how advanced i get into


http://i47.tinypic.com/rrqe13.gif

Offline

 

#9 2011-07-20 09:33:09

fire219
Scratcher
Registered: 2008-02-07
Posts: 1000+

Re: need .bat help?

Another way to make the computer crashing code up there is:

Code:

@echo off
start virus.bat
pause

And name the batch file "virus.bat". You could leave off the "@echo off" to make the file a little smaller.

For advanced code, look at SIMPL-DOS (link in my sig).


http://bluetetrarpg.x10.mx/usercard/img.php?name=fire219

Offline

 

#10 2011-07-21 05:18:30

helltank
Scratcher
Registered: 2010-05-21
Posts: 1000+

Re: need .bat help?

fire219 wrote:

Another way to make the computer crashing code up there is:

Code:

@echo off
start virus.bat
pause

And name the batch file "virus.bat". You could leave off the "@echo off" to make the file a little smaller.

For advanced code, look at SIMPL-DOS (link in my sig).

By the way, I added a sidenote to my loop.bat post. You might have missed it, but it states that this is another way to do it. Me and my hacker buddehs found it was milder, though. And it crashed less badly.


Error:Signature could not load. Please wait for an indefinite amount of time, until you realize you're gullible and go off to look for another potentially interesting signature to stare at.

Offline

 

Board footer