PROBLEMCHYLD Posted July 10, 2007 Share Posted July 10, 2007 I was just playing around with the cmd.exe file from WinXP and renamed it to command.comand it still works as if nothing has change.Now i was just wondering since i renamed it to command.com will it work on Win98SE? Link to comment Share on other sites More sharing options...
awergh Posted July 10, 2007 Share Posted July 10, 2007 The XP CMD.exe doesnt work for me i didnt rename it to command.com(these are missing)KERNEL32.DLLGetVDMCurrentDirectories(this i dont this is very important because it works on nt4 without these)ADVAPI32.DLLSaferRecordEventLogEntrySaferCloseLevelSaferComputeTokenFromLevelSaferIdentifyLevel Link to comment Share on other sites More sharing options...
marxo Posted July 10, 2007 Share Posted July 10, 2007 And it was to be expected since it is no command.com Link to comment Share on other sites More sharing options...
BenoitRen Posted July 10, 2007 Share Posted July 10, 2007 .com and .exe files are of a different format. Changing the extension of a file will NOT magically change its format! Link to comment Share on other sites More sharing options...
jaclaz Posted July 10, 2007 Share Posted July 10, 2007 (edited) Just for the record, there is a "cmd.exe" that works under win9x that has almost, but not quite, all the functionalities of 2k/Xp "cmd.exe":http://www.boot-land.net/forums/?showtopic=2392jaclaz Edited July 29, 2008 by jaclaz Link to comment Share on other sites More sharing options...
PROBLEMCHYLD Posted July 10, 2007 Author Share Posted July 10, 2007 Just for the record, there is a "cmd.exe" that works under win9x that has almost, but not quite, all the functionalities of 2k/Xp "cmd.exe":http://www.boot-land.net/forums/Nice-find-...in9x-t2392.htmljaclazso its safe to say this file is ok or whathow many bugs etc...it this a replace for command.com? Link to comment Share on other sites More sharing options...
BenoitRen Posted July 10, 2007 Share Posted July 10, 2007 Sadly, its not HX-DOS compatible, so Windows GUI is required.Doesn't look like it'd be a replacement for command.com in that case. Link to comment Share on other sites More sharing options...
dencorso Posted July 11, 2007 Share Posted July 11, 2007 I was just playing around with the cmd.exe file from WinXP and renamed it to command.comand it still works as if nothing has change.Now i was just wondering since i renamed it to command.com will it work on Win98SE?Hi, PROBLEMCHYLD! This is a characteristic behaviour that is inherited from good old MS_DOS:The command interpreter can have any name. This is "by design". Moreover, it doesn't matterwhether the extention is .com or . exe, since both are known to the SO as "executable".But probably it will stop working if you change the extention to .pdf or .txt ... On the other hand, from the point-of-view of the program loader, if the extension is executale it goes ahead and tries to execute the file, then checking the file format signature, to be able todo so: if none is found it wil assume it's a .com (executable image) format and try to execute itfrom the first byte, whereas if a format signature (MZ, PE, NE, LE) is found it will take the knownnecessary steps to load correctly the diverse segments of the file, and then transfer control to theaddress found in the program file header. By the way, MS-DOS 7.1 COMMAND.COM is, in fact, an.exe file, as can be seen by loading it in any hexeditor and observing that the first two bytes are MZ.The name is just a nod to older times. All this said, there remains the question of cmd.exe's depen-dencies, which are another reason for it not to run under Win 9x. But that's another matter entirely.In the past, there was a "fever" for replacements of the DOS command interpreter, the best knowof which was Norton Utilities's NDOS.COM (who else still remembers of it?)... HTH Link to comment Share on other sites More sharing options...
Tihiy Posted July 11, 2007 Share Posted July 11, 2007 Win95cmd.exe - excellent find! Does anyone have consize.exe?As for solution, command.com and cmd.exe can be merged so command.com will work under DOS, and cmd.exe in Windows. I'll try to do that. Link to comment Share on other sites More sharing options...
jaclaz Posted July 11, 2007 Share Posted July 11, 2007 so its safe to say this file is ok or whathow many bugs etc...it this a replace for command.com?No, the idea is to have under win9x/Me GUI (NOT under DOS 7.x command line) an alternate command interpreter capable of running .cmd batch scripts INSTEAD of .bat ones and take advantages of most (but NOT all) added features of batch commands from NT/2K.For a replacement of DOS command.com, the reference is of course the JP Softwares 4DOS, which used to be Commercial, then was released as FREEWARE and recently became OPEN SOURCE !:http://www.boot-land.net/forums/4DOS-is-no...urce-t2549.htmlStart here:http://www.4dos.info/http://www.4dos.info/4dinfo.htmif you do not know what 4DOS is.Win95cmd.exe - excellent find! Does anyone have consize.exe?I don't get it , the download on the given site:http://cygutils.fruitbat.org/consize/has TWO builds of it, already compiled.jaclaz Link to comment Share on other sites More sharing options...
oscardog Posted July 11, 2007 Share Posted July 11, 2007 Win95cmd.exe - excellent find! Does anyone have consize.exe?As for solution, command.com and cmd.exe can be merged so command.com will work under DOS, and cmd.exe in Windows. I'll try to do that.Try consize-vc from ftp://ftp.franken.de/pub/win32/develop/gn...size/index.html Link to comment Share on other sites More sharing options...
submix8c Posted July 22, 2007 Share Posted July 22, 2007 For a replacement of DOS command.com, the reference is of course the JP Softwares 4DOSDefinitely a nifty replacement tool (glad someone else noticed it). But be forewarned that certain DOS equivalent functions yield slightly different output. This means that some BAT files (or commands eg DIR) may not yield the same results if output is fed into another process. AutoPatch for 98SE is currently detecting it as a "no-no" until the work-arounds can be obtained. Best bet (if you try it out) is to install it, revert the Autoexec.bat and Config.sys files to the originals (backed up automatically BTW) and read the HELP stuff for more info (sloooow reading). Most "standard Command.com" functions do work exactly the same.On topic, a command.com that works like cmd.exe would be better. It would allow for CMD execution instead of the 4DOS-style alternative and would retain functional compatibility for DOS-style(?) output. Link to comment Share on other sites More sharing options...
marxo Posted July 22, 2007 Share Posted July 22, 2007 Well Tihiy had a good idea about merging those two. Why bothering with 3rd party apps? Link to comment Share on other sites More sharing options...
submix8c Posted July 22, 2007 Share Posted July 22, 2007 On topic, a command.com that works like cmd.exe would be better. It would allow for CMD execution instead of the 4DOS-style alternative and would retain functional compatibility for DOS-style(?) output.Well Tihiy had a good idea about merging those two. Why bothering with 3rd party apps???? I thought that's what I said ??? Besides, that could also be construed as "third party"...Let it go (big "sigh" here). Many alternatives to suit the individual requirements. Wishing success to such an endeavor. I too would use it... Link to comment Share on other sites More sharing options...
StillOn98 Posted March 8, 2008 Share Posted March 8, 2008 (edited) thanks Edited March 9, 2008 by StillOn98 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