SRL Archive - Computer Help and Tutorials

Command Prompt for Schools That Disable It


Widget

2008-01-28 00:06:16

It's just a little nifty batch file that I made a few years back but still works. Here's how to do it:

If you have a flash drive, you can do this at home to look a bit less suspicious or whatever you feel like using as an excuse

Anyway, open up Notepad or Wordpad, and type/paste the following
@echo off
:start
set /p pie=%cd%^>
%pie%
goto start

Now File > Save and type in "cmd.bat" (with the quotes, this over-rides the regular .txt extension so it's actually usable :)) wherever you want to put it (most schools let you save stuff inside My Documents regardless of if you have a network drive).

Just so I can force you to learn something, this is what it does, line by line:
@echo off
Turns echoing off. Basically it stops the commands that it's executing from showing up in the prompt. It's more or less to make it look much nicer :)
:start
This is a label, you'll see later that it lets us come back to this section if we want.
set /p pie=%cd%^>
Big line :p. set /p means we're setting a variable through a prompt. The variable we're setting is pie, and the prompt being displayed is %cd%^>. %cd% will tell you the current directory, and ^> is a > (the ^ is an escape character, it just tells the command prompt to not try executing the > that's following it).
%pie%
Whatever you entered in the prompt will be executed as if it were typed normally. Pretty simple.
goto start
This puts the file into a loop so you can execute commands over and over and keep the current directory and stuff.

Well that's it, you can try net sending or shutdown /i-ing at your own risk ;)

-Widget

chitin

2008-01-28 20:51:41

nifty, but i already posted a tut on this, and so did some other guy whos pretending its his, its really all me and ieatjoober…somthing….but thnx anyway…?

Harry

2008-01-28 21:57:39

Wow! I will defentally try this!!!

Widget

2008-01-28 23:16:08

Meh, it's more or less what you were doing except that it's an actual prompt thing instead of only running one command that may or may not have correct syntax :p

AzzA

2008-01-30 04:00:52

Also some schools like mine block the cmd being open for more than 2 seconds. Doubt anybody else's school does this, but to get past it

Make a text file - In the text file have "Command.com"
Save it as a .bat or .cmd Then it should work.

dad0

2008-01-30 12:24:21

Something like this was already posted.

And didn't worked for me.

carbonchain

2008-01-30 22:54:19

GJ, I am going to do this first thing at school tomorrow :D

Rikje

2008-01-31 08:00:06

Well i can open my cmd. by pressing windows key R and then type cmd.

tough i did try this and buy it didn't work :(

Sc00by22

2008-02-02 08:40:23

My School blocks cmd prompts lol

richk1693

2008-02-02 11:12:07

This would probably work, but it would get me in trouble at school so I'm hesitant to try it.

ranojit

2008-02-03 15:25:12

thanks this worked for me in my school and now i just gotta make sure no one notices me.

RandomX3327

2008-02-03 16:33:38

Thanks, I'm going to try this tomorrow.

Toothpic00

2008-05-04 12:31:18

I tried it it didnt work. Not sure what line went bad or if I didn't do it correctly also make sure to give credit to the people that you took this from.. I was going to rep you but now imma rep them

eurostylz

2008-05-04 12:50:10

From: Toothpic00
I tried it it didnt work. Not sure what line went bad or if I didn't do it correctly also make sure to give credit to the people that you took this from.. I was going to rep you but now imma rep them


Try this one, open notepad

type this in it

"command.com"


then save the file as commad.bat


AND PS TO USERS READ THIS IF YOU PLAN TO USE THIS

earlier last year, i was fooling around with some command prompts and i was able to "hack" into a main server and i was caught, they wanted to lay charges on me, i go out of it, but dont use a command prompt in school unless you know what you are doing and ready to face the consequences.

vengence

2008-05-06 16:41:41

hmm. i'll try this tomorrow and see if it works or not

Mists

2008-05-12 18:20:51

Will this work if "Your administrator has disable .. " ?

My school doesn't have notepad or word pad, so what I did was just open up Microsoft Word, saved it and changed it to .bat and added @ cmd.

It gave me the error at the top, or on some of the computers just closed the screen.

salman

2008-05-12 19:55:56

u can also put "command.com" (without quotes) in notepad and save the file as .bat.
Hope that helps

jhildy

2008-05-12 23:23:04

U don't even have to type all that if the computer is xp or above than just type cmd and save it as a .bat file. If the command prompt is disabled than just write a batch file and it will execute fine.

hylian_loach

2008-05-13 03:38:06

There's another method to do this - In the batch file, simply type "command.com". Command.com is the old Windows 98 version of cmd, but it does the same trick.

EDIT: Whoops! I didn't notice that a couple of people had already suggested this. Can the OP of the post include this method to prevent further mistakes :D

Thanks

Vampspiro

2008-08-06 22:03:43

wow I must try this but i shall use one of my "friends" account hahah so I wouldnt get caught xD