PDA

View Full Version : using dos to delete a file with xp



Smith
10-08-2004, 01:37 AM
well i have to replace a dll file called NTDLL.DLL but its being used by windows.

so i have to delete it with dos. its in my system32 just so you know.

i forget how to use dos on startupto delete the file so can u guys explain it for me?

thanskl

motherflux
10-08-2004, 02:10 AM
mm...problem is, taht in XP you can't really boot to a pure command prompt.
you'll just be in a dos window

anyway, hold f8 at boot for options
and use the del command to delete whatever.

maskawaih
10-08-2004, 02:40 AM
mm...problem is, taht in XP you can't really boot to a pure command prompt.
you'll just be in a dos window

anyway, hold f8 at boot for options
and use the del command to delete whatever.
After holding F8, there will be options to startup in safe mode, safe mode with networking, safe mode with command promt etc. choose that command prompt.

but i think its ok if you use the ordinary Safe mode option ;)

The_Hunter
10-08-2004, 02:50 AM
if other ideas dont work make a windows me bootdisk and do it that way

motherflux
10-08-2004, 02:55 AM
mmmm I don't think a 9x boot disk dos thingy will read an NTFS partition (if that's what he has)
I may be wrong though.

maskawaih
10-08-2004, 03:01 AM
mmmm I don't think a 9x boot disk dos thingy will read an NTFS partition (if that's what he has)
I may be wrong though.
No, a 9x/ME boot disk will not read an NTFS partition.

mini sparsely
10-08-2004, 03:49 AM
well i have to replace a dll file called NTDLL.DLL but its being used by windows.



so i have to delete it with dos. its in my system32 just so you know.



i forget how to use dos on startupto delete the file so can u guys explain it for me?



thanskl
Ok don`t don`t just delete the file. You could boot up with the windows xp disk

and replace it with with the one in the disk. You could try "sfc" command to scan for modified "protected system files". You will be asked for your windows xp setup disk.

Anyways to delete the file you can type "del /?" for a list of options. If you want to replace a DLL file in use you will have to re-name first then replace it.


Example: assuming you have a copy of the dll on a disk

ren NTDLL.DLL NTDLL.DL

copy a:\NTDLL.DLL

motherflux
10-08-2004, 03:59 AM
or better to rename it to ntdll.old
or something so you'll remember :P

Smith
10-08-2004, 07:37 PM
umm im so lost.

i dont remember how to do this at all.

could someone make steps to replace this file?

mini sparsely
10-09-2004, 04:40 AM
umm im so lost.

i dont remember how to do this at all.

could someone make steps to replace this file?
Well first make sure you have a copy of NTDLL.DLL from your winXP setup disk.

Goto start/run.. type cmd .. click ok

type:

cd %SystemRoot%\system32
ren NTDLL.DLL NTDLL.DL
copy a:\NTDLL.DLL