You are here

A batch file is an executable?

5 posts / 0 new
Last post
Pyromaniac
Pyromaniac's picture
Offline
Last seen: 9 years 9 months ago
Developer
Joined: 2008-09-30 19:18
A batch file is an executable?

Well, the school always tries to screw me up and well, looks like they were going to ban me again from their computers when they saw me running a batch file. (I was showing a joke to my computer-impaired friend).

@echo off
echo You will die and go to hell
pause
@echo off
echo Are you sure?
pause
@echo off
echo OK off you go.
pause
start HELL

The lady was like "oh what have we told you about having executables?" and "what were you doing?" and the usual questioning. I was telling her its just a batch file and that I'm not running anything on the computer and she said that it was. I didn't want to get banned again so I kept my mouth shut.

And that leads me to ask... Is a batch file an "executable"? its running cmd.exe from system32, its not really an exe, right?

P.S. I've also tried to run cmd.exe from system32 but they disabled it last year after one of my friends hacked into the school server and started changing his grades. (The district never knew it was him though :P)

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 13 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Running Something

When they say executable are banned, it usually means you're not supposed to be running anything. It's best not to push it.

Sometimes, the impossible can become possible, if you're awesome!

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 4 months ago
Developer
Joined: 2009-08-11 11:24
yes, a batch file is an

yes, a batch file is an executable... it can do an awful lot, including screwing up a system in a major way.

Batch files can't access API's directly, but they can run any other program, open files, move/copy/delete files, shut the system down, etc. etc. etc... (open the Command Prompt and type "help" without the quotes to see all the stuff a batch file can do)
Batch files can even execute loops, IIRC.

Bottom line: yes, batch files are executables. (So are VBScripts, JavaScripts, COM files, PIF files and plain old EXE files)

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

MoxiousOne
MoxiousOne's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2009-11-17 03:31
You shouldn't of been showing

You shouldn't of been showing off anyway. Skiddies like you ruin it for everyone.

"look what i can do!"
"omg! how do you do that?"
"well, it takes time...."

Stop showing off to people who have no [filtered by mod] idea what you're doing and spend your time doing something useful.

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 9 months ago
Joined: 2006-06-18 13:55
Lose the attitude and the

Lose the attitude and the vocabulary please.

Moderator Tim

Things have got to get better, they can't get worse, or can they?

Log in or register to post comments