cmd corrupted?

  • Thread starter Thread starter Québec
  • Start date Start date
Q

Québec

I susppect a corrupted file.

Somebody knows the dll related to cmd.exe.
I updated win2000, putted the Service Pack 4..

I runned sfc /scannow. It ask for my disk and says it is not the good one!

Is there a way to point sfc to a folder on disk?


JPDaviau
 
In said:
I susppect a corrupted file.

Somebody knows the dll related to cmd.exe.
I updated win2000, putted the Service Pack 4..

I runned sfc /scannow. It ask for my disk and says it is not the
good one!

Is there a way to point sfc to a folder on disk?

There is no one specific DLL associated with cmd.exe. A CMD process
here happens to use about 20 files. Most of them are common system
libraries (DLLs).

I would un-install / re-install the SP myself. After carefully
stopping all un-needed processes and services each time. Especially
background tasks like real-time A-V monitors. I would also run full
and updatd A-V and A-T scans before proceding.

There is a way. It depends in part on haveing the "network install"
(full) version of the SP available locally. IOW not installed from
the Internet/WU. I recommend all SPs and even the security patches
be downloaded and stored locally (CD perhaps) against any future
need.

Here is a start
http://www.jsiinc.com/subk/tip5300/rh5380.htm

Exact error messages and any other details on the problem would be
helpful. For example RUN..., cmd.exe fails, but cmd runs if the
current directory is SYSTEM32. Any other problems or error messages?
Any Event Log entries? Etc.
 
%~z1 does not work

I tried it in dll cache and it suddenly worked for a while then ....

=================================

See the Thread from Québec on this group titled
compare file 10/27/2003

I am on win2000 and try to make your script (year 2002) works;
I dont know why the file zize does not print on screen and the copy (line I
added) dont copy too.

::comfilsiz C:\learnJava\RemindMe\RemindLog.txt
C:\learnJava\RemindMe\back\RemindLog.txt
@echo off
set /a size_of_file1= %~z1
set /a size_of_file2= %~z2

@echo.
@echo File 1 (%1) size is %size_of_file1%
@echo File 2 (%2) size is %size_of_file2%
@echo.

if %size_of_file1% GTR %size_of_file2% echo File 1 is larger than File 2.
if %size_of_file1% EQU %size_of_file2% echo File 1 is same size as File 2.
if %size_of_file1% LSS %size_of_file2% echo File 1 is smaller than File 2.

if %size_of_file1% GTR %size_of_file2% do copy %1 C:\learnJava\RemindMe\back
/Y

goto:EOF
 
I created root%I386 & w2k\I386

I downloaded Service pack4. Are theese the files I should keep on a cd?

$NtServicePackUninstall$
$NtUninstallKB823182$
$NtUninstallKB823559$
$NtUninstallKB824105$
$NtUninstallKB824141$
$NtUninstallKB824146$
$NtUninstallKB825119$
$NtUninstallKB826232$
$NtUninstallKB828035$
 
sfc /scannw keep asking for the good CD
How do end that thing besides using task manager?

I found a key in registry
Value 1
Name: CDInstall
Type: REG_DWORD
Data: 0x1

If it search for a cd it wont use c:\I386
 
In said:
%~z1 does not work

I tried it in dll cache and it suddenly worked for a while then
....

=================================

See the Thread from Québec on this group titled
compare file 10/27/2003

I am on win2000 and try to make your script (year
2002) works;
I dont know why the file zize does not print on screen and the
copy (line I added) dont copy too.

::comfilsiz C:\learnJava\RemindMe\RemindLog.txt
C:\learnJava\RemindMe\back\RemindLog.txt
@echo off
set /a size_of_file1= %~z1
set /a size_of_file2= %~z2

@echo.
@echo File 1 (%1) size is %size_of_file1%
@echo File 2 (%2) size is %size_of_file2%
@echo.

if %size_of_file1% GTR %size_of_file2% echo File 1 is larger than
File 2. if %size_of_file1% EQU %size_of_file2% echo File 1 is same
size as File 2. if %size_of_file1% LSS %size_of_file2% echo File 1
is smaller than File 2.

if %size_of_file1% GTR %size_of_file2% do copy %1
C:\learnJava\RemindMe\back /Y

goto:EOF

I am going to leave that question in the original thread where it
seems you are getting assistance.
 
In said:
I created root%I386 & w2k\I386

I downloaded Service pack4. Are theese the files I should keep on
a cd?

$NtServicePackUninstall$
$NtUninstallKB823182$
$NtUninstallKB823559$
$NtUninstallKB824105$
$NtUninstallKB824141$
$NtUninstallKB824146$
$NtUninstallKB825119$
$NtUninstallKB826232$
$NtUninstallKB828035$

No. Or at least not for now. Those are automaticaly created
backup/archive directory made during a SP or Hotfix installation.
They are used if you chose to un-install the SP or hotfix from
Add/Remove. You could delete any of those if and only if you are
certain you will never want to un-install the SP or hotfix. In that
case copying them to a CD or other location may be wise.

If you downloaded the entire W2K SP4 files you should have:
W2KSP4_EN.EXE
It is this file that I would burn to a CD in case I needed to re-
apply it again or apply it to another system.

Same (here) with Hotfix files like: Windows2000-KB826232-x86-ENU.exe

I'll continue as Reply in your next post.
 
In said:
sfc /scannw keep asking for the good CD
How do end that thing besides using task manager?

I found a key in registry
Value 1
Name: CDInstall
Type: REG_DWORD
Data: 0x1


Okay. This is what I have here for reference.
D:\W2K-SP4\

What is in that is a copy of the entire original W2K CD and it has
SP4 "slipstreamed" into it. There is a D:\W2K-SP4\i386\ directory
contain all the orignal files and the SP4 files. On my system that
was SP3, I did install the SP4 by running W2KSP4_EN.EXE. Next I
slipstreamed the SP4 into the Source location (D:\W2K-SP4\) by
running
W2KSP4_EN.EXE -s D:\W2K-SP4\i386
or maybe it was W2KSP4_EN.EXE -s D:\W2K-SP4
you'll have to check.

Then I pointed in the registry to the new location at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\
SourcePath=D:\W2K-SP4
(REG_SZ)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
SourcePath=D:\W2K-SP4
(REG_SZ)

I have no recollection of ever changing "CDInstall" wherever that is.

MS has articles in the Knowledge Base on all this, And that site I
mentioned (www.jsiinc.com) has many useful Tips as well on both
slipstreaming and changing the SourcePath (as in the Tip I posted)

Backup the registry before modification.
YMMV and some of above is from memory. I suggest both JSI and the MS
KB article for more.
 
Ok I have already

SP4Express_EN.exe

is that one good enough? I use only one computer.

Windows2000-KB823980-x86-ENU.exe
 
In said:
Ok I have already

SP4Express_EN.exe

is that one good enough? I use only one computer.

Windows2000-KB823980-x86-ENU.exe

No. I think that is the "stub" file for an on-line installation
and not a stand-alone, all-inclusive file.

From
http://www.microsoft.com/Windows2000/downloads/servicepacks/sp4/download.asp
you want the "SP4 Network Installation" link
http://download.microsoft.com/download/E/6/A/E6A04295-D2A8-40D0-A0C5-241BFECD095E/W2KSP4_EN.EXE

The file is W2KSP4_EN.EXE
(and that is ENglish language BTW)
about 130 MB
 
Back
Top