Jump to content

How to do this action in DOS?


xtremee

Recommended Posts

Hi all

i wanna command.com to execute .abc file in my startup disk.

i.e. i have startup disk created by windows xp and i have file .abc i put this file on the disk and wanna to execute this file in dos

I don't wanna to change it is extension to .exe or .com i wanna it as it is.

Any ideas will be good

Regards,

Xtreme

Link to comment
Share on other sites


Why in Windows XP would you be wanting to use command.com?

What is the file *.abc, unless its file type is known, it will not 'execute'. We use known file extensions for known file types so that the system knows what to do with it.

Link to comment
Share on other sites

@TheFlash428

1st thanks for ur reply :hello:

Could you have it run as a .bat file?
it is an executable file not batch.

------------------------------------------------------------------------------------------------------------------------------

@Yzöwl

1st thanks for ur reply :hello:

Why in Windows XP would you be wanting to use command.com?

i wanna to use command.com which it created in startup disk not under windows enviroment.

What is the file *.abc, unless its file type is known, it will not 'execute'. We use known file extensions for known file types so that the system knows what to do with it.
the *.abc file in example for any extention which i wanna to execute under Dos

-----------------------------------------------------------------------------------------------------------------------------

Wat i wanna is to let command.com execute file in extention .abc

Reagrds,

Xtremee

Link to comment
Share on other sites

I don't think that this is possible in DOS because DOS reads a file differently according to its extension...

You could just add XMSDSK.EXE (like I do) to the floppy, and make a RamDisk with letter Z:, copy .abc to it as .exe and run, then remove xmsdsk.exe from memory...

To make sure that the RAMDrive letter is always known, put "LASTDRIVE=Z:" in Config.SYS and use xmsdsk.exe parameters to make the RamDrive to Z:

You will need to have at least DEVICE=HIMEM.SYS in your CONFIG.SYS file for it to work.

You can see XMSDSK.EXE parameters by executing "XMSDSK.EXE /?"

-- XMSDSK.EXE here (11.57 KB):

xmsdsk.exe

Edited by ChipCraze23
Link to comment
Share on other sites

You can do this, but you'll have to rename all your other .EXEs or .COMs to .ABC...

Open command.com in a hex editor and find the .BAT.EXE.COM string near the end. Change the .EXE or .COM to .ABC and save the file. Now, .EXE or .COM files won't run, while .ABCs will.

Link to comment
Share on other sites

Let see if we can put it straight.

1) there is NO DOS in XP

2) there is the Command Prompt (that is NOT DOS)

3) the Command prompt can be generated by two DIFFERENT COMMAND INTERPRETERS

4) The main (default) one is cmd.exe that has MORE features

5) To mantain a better compatibility with DOS programs, there is also the command.com that has LESS features, i.e. only 8.3 filenames, etc.

Read here:

http://www.ss64.com/nt/cmd.html

Now the so-called "executable program" file extensions are usually:

.bat

.cmd

.com

.exe

.vbs

plus a few more:

http://antivirus.about.com/od/securitytips/a/fileextview.htm

Windows "decides" that a file is executable by it's extension.

Executable extensions are held in the Registry, nothing prohibits you to ADD an .abc file extension in the Registry, complete howto:

http://filext.com/info/showthread.php?t=12

and an useful (FREEWARE) program:

http://www.angelfire.com/biz/rhaminisys/fileasoc.html

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

I think he means to a DOS startup disk (like a Windows 98 Boot Floppy)...

In XP, it's very easy to add other executable extensions...

Ohhh, I see. :(

So we are talking of the DOS floppy diskette that XP can make.

Then there is no easy way out, the three extensions used are:

.COM

.EXE

.BAT

(the solution LLXX works, but has it's negative consequences)

but a file with a different extension "could" work, see this:

http://support.microsoft.com/?kbid=35284

(it applies to "real" MS-DOS, not the one that XP creates, which is a "derivative of the DOS part of ME, I believe, but trying won't do any harm)

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...