command.com

The ubiquitous operating system, discussion of its (many) flaws, and how to mitigate the risks of those flaws

command.com

Post by nosidius on Sat Aug 23, 2008 11:07 am
([msg=10315]see command.com[/msg])

as it is, few people know about "command.com", and i myself know very little about it even though i am a windows nubler (not nub, there's a difference between the 2, it means i have no life in regards to the topic)

here's what i DO know:
command.com is shell script instead of CMD, which is built into windows seperately
.com's are all shell scripts, so you run them as a program more than a file

0.0 thats it, please add to it if you can, as it is i'm not entirely sure what the running difference is between a com, and a bat, and i don't want to kill my computer............ shells can be quite nasty 0.0
give me knowledge or give me death
User avatar
nosidius
Poster
Poster
 
Posts: 177
Joined: Fri Aug 08, 2008 1:40 pm
Blog: View Blog (0)


Re: command.com

Post by the13ghost2 on Mon Aug 25, 2008 7:24 pm
([msg=10474]see Re: command.com[/msg])

well *.com files are just another type of executables, command.com was the original cmd.exe before moving to 32bit Ithink so command.com isnt a shell script , it is the shell, the shell script equivalent in windows would be a *bat file
the13ghost2
New User
New User
 
Posts: 1
Joined: Thu Apr 17, 2008 5:19 pm
Blog: View Blog (0)


Re: command.com

Post by vandalize on Mon Nov 03, 2008 11:35 am
([msg=14419]see Re: command.com[/msg])

ya command.com is DOS very good tool I like using it

Edit: its what you use when your school disabled CMD ;)
Life is like snow you build it up high just to see it melt before your eyes
-Travis Cagle
vandalize
Experienced User
Experienced User
 
Posts: 86
Joined: Sat Sep 20, 2008 11:29 am
Location: Ithaca New york
Blog: View Blog (0)


Re: command.com

Post by Andomis on Mon Nov 03, 2008 6:06 pm
([msg=14441]see Re: command.com[/msg])

As stated:

*.bat files are just a set of command lines saved to a text file for execution at a later time.

*.com files are the equivilant to .exe files.

To oversimplify: a .COM file is a direct image of how the program will
look in main memory, and a .EXE file will undergo some further
relocation when it is run (and so it begins with a relocation header). A
.COM file is limited to 64K for all segments combined, but a .EXE file
can have as many segments as your linker will handle and be as large as
RAM can take.

The actual file extension doesn't matter. DOS knows that a file being
loaded is in .EXE format if its first two bytes are MZ or ZM; otherwise
it is assumed to be in .COM format. For instance, DR-DOS 6.0's
COMMAND.COM is in .EXE format as is COMMAND.COM in recent versions of
MS-DOS. -www.faq.com


In Vista, command.com and cmd.exe are the same file, and the base DOS commands are just implimented into the command prompt. (As it appears, I could be mistaken.)

If you show more interest in this kind of topic, I would suggest researching:
-Windows PowerShell (Optional replacement for cmd.exe in newer OS's)
-CScript

Alive,
Andomis
"I'm choking on that four letter word, it sticks in my throat as i read the words YOU wrote..."
User avatar
Andomis
Experienced User
Experienced User
 
Posts: 76
Joined: Thu Oct 23, 2008 8:50 pm
Blog: View Blog (0)



Return to Microsoft Windows

Who is online

Users browsing this forum: No registered users and 0 guests