W
Walter Briscoe
In a Windows 2000 Professional SP3 system,
I want to replace cmd.exe with an XP version.
I save and overwrite %windir%\system32\dllcache\cmd.exe and
%windir%\system32\cmd.exe.
Along comes what I assume is "System Restore" and my work is undone.
How do I do what I want to do other than by writing a C program to do so
which seems like a sledgehammer to crack a nut?
Can somebody point to a document comparing the two programs?
The first significant difference is in their sizes:
2002/07/22 19:05 236,304 cmd.exe the 2000 SP3 file
2001/08/23 13:00 375,808 cmd.exe the XP file
Such a large difference in size ought to represent a large change in
functionality.
The 1st significant functional difference is in the maximum command
length which changes from about 2000 to about 8000. (I decided to make
the change rather than split a 6500 character for command into 4.)
A trivial difference is in the layout of dir command output. Data to the
right of the date has been pulled left by 3 bytes. (I confirmed the XP
behaviour on an XP system.) I had to tweak/improve a script which relied
on the 2000 format.
Is there a better method of distinguishing 2000 and XP than with ver?
C:\) ver
Microsoft Windows XP [Version 5.0.2195]
C:\) %windir%\system32\cmd /c ver
Microsoft Windows 2000 [Version 5.00.2195]
C:\) dir %windir%\system32\cmd.exe
Volume in drive C has no label.
Volume Serial Number is 7CF6-0E82
Directory of C:\winnt\system32
2002/07/22 19:05 236,304 cmd.exe
1 File(s) 236,304 bytes
0 Dir(s) 540,717,568 bytes free
C:\) %windir%\system32\cmd.exe /c dir %windir%\system32\cmd.exe
Volume in drive C has no label.
Volume Serial Number is 7CF6-0E82
Directory of C:\winnt\system32
2002/07/22 19:05 236,304 cmd.exe
1 File(s) 236,304 bytes
0 Dir(s) 540,717,568 bytes free
C:\)
I want to replace cmd.exe with an XP version.
I save and overwrite %windir%\system32\dllcache\cmd.exe and
%windir%\system32\cmd.exe.
Along comes what I assume is "System Restore" and my work is undone.
How do I do what I want to do other than by writing a C program to do so
which seems like a sledgehammer to crack a nut?
Can somebody point to a document comparing the two programs?
The first significant difference is in their sizes:
2002/07/22 19:05 236,304 cmd.exe the 2000 SP3 file
2001/08/23 13:00 375,808 cmd.exe the XP file
Such a large difference in size ought to represent a large change in
functionality.
The 1st significant functional difference is in the maximum command
length which changes from about 2000 to about 8000. (I decided to make
the change rather than split a 6500 character for command into 4.)
A trivial difference is in the layout of dir command output. Data to the
right of the date has been pulled left by 3 bytes. (I confirmed the XP
behaviour on an XP system.) I had to tweak/improve a script which relied
on the 2000 format.
Is there a better method of distinguishing 2000 and XP than with ver?
C:\) ver
Microsoft Windows XP [Version 5.0.2195]
C:\) %windir%\system32\cmd /c ver
Microsoft Windows 2000 [Version 5.00.2195]
C:\) dir %windir%\system32\cmd.exe
Volume in drive C has no label.
Volume Serial Number is 7CF6-0E82
Directory of C:\winnt\system32
2002/07/22 19:05 236,304 cmd.exe
1 File(s) 236,304 bytes
0 Dir(s) 540,717,568 bytes free
C:\) %windir%\system32\cmd.exe /c dir %windir%\system32\cmd.exe
Volume in drive C has no label.
Volume Serial Number is 7CF6-0E82
Directory of C:\winnt\system32
2002/07/22 19:05 236,304 cmd.exe
1 File(s) 236,304 bytes
0 Dir(s) 540,717,568 bytes free
C:\)