xtremee Posted March 21, 2006 Share Posted March 21, 2006 Hi alli 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 goodRegards,Xtreme Link to comment Share on other sites More sharing options...
TheFlash428 Posted March 21, 2006 Share Posted March 21, 2006 Could you have it run as a .bat file? Link to comment Share on other sites More sharing options...
Yzöwl Posted March 21, 2006 Share Posted March 21, 2006 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 More sharing options...
xtremee Posted March 22, 2006 Author Share Posted March 22, 2006 @TheFlash4281st thanks for ur reply Could you have it run as a .bat file?it is an executable file not batch.------------------------------------------------------------------------------------------------------------------------------@Yzöwl1st thanks for ur reply 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 .abcReagrds,Xtremee Link to comment Share on other sites More sharing options...
n7Epsilon Posted March 22, 2006 Share Posted March 22, 2006 (edited) 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 March 22, 2006 by ChipCraze23 Link to comment Share on other sites More sharing options...
LLXX Posted March 23, 2006 Share Posted March 23, 2006 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 More sharing options...
jaclaz Posted March 23, 2006 Share Posted March 23, 2006 (edited) Let see if we can put it straight.1) there is NO DOS in XP2) there is the Command Prompt (that is NOT DOS)3) the Command prompt can be generated by two DIFFERENT COMMAND INTERPRETERS4) The main (default) one is cmd.exe that has MORE features5) 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.htmlNow the so-called "executable program" file extensions are usually:.bat.cmd.com.exe.vbsplus a few more:http://antivirus.about.com/od/securitytips/a/fileextview.htmWindows "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=12and an useful (FREEWARE) program:http://www.angelfire.com/biz/rhaminisys/fileasoc.htmljaclaz Edited March 23, 2006 by jaclaz Link to comment Share on other sites More sharing options...
n7Epsilon Posted March 23, 2006 Share Posted March 23, 2006 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... Link to comment Share on other sites More sharing options...
jaclaz Posted March 23, 2006 Share Posted March 23, 2006 (edited) 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 March 23, 2006 by jaclaz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now