Nov 8, 2009
Pages: 1, 2, 3

Delete Any File On Xp

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Windows (All Versions)

Delete Any File On Xp

miCRoSCoPiC^eaRthLinG
QUOTE(speedy @ Oct 25 2005, 11:58 PM)

Here is a way to delete any file:
Go to Start>>Run>>cmd
Type in the path where the file is located (eg. "cd c:\temp" ), don’t close this window
Press ctrl + alt + del
In processes panel close "Explorer.exe" (you would see that taskbar disappears), dont close the window
In the command screen delete the file ( del filename )
In the task manager click File >> New task >> Explorer.exe
Taskbar reappears and the file deletes.

This is quite a usefull trick.
If anyone know any other easier way to do the same then please share it  biggrin.gif

Speedy
*




Since you brought this up - have you ever noticed that quite often, when you kill the explorer in this way and restart it using New Task a whole bunch of icons disappear from the System Tray - I mean, among the one's that were running prior to explorer shutdown, only about 70% of them are redisplayed. Anybody faced this before ??

This is a good method to release the file-locks and delete them - but sometimes, you'd face some obstinate processes (with corresponding .exe files on disk) - which you'd want to delete. They'd get me stymied completely coz:
1. When I tried to delete the .exe, it would report that the process is running and the file is locked. Hence cannot be deleted.
2. I go to Taskman and close down the process.
3. By the time, I go to delete the process .exe, it had started itself back again and won't let me delete it anymore.. This got me immensely infuriated in many situations.

What you need is a tool that'd KILL the process from memory and delete the file from the disk (in realtime - at the same time). Hence I went out on a hunt and found this tool - which came to extremely good use thereafter, particularly for virulent processes - which'd spawn themselves as soon as you shut them down.

Here's where you get it:
1. http://www.bleepingcomputer.com/files/killbox.php
2. http://www.short-media.com/download.php?d=319

This tool ALSO works for the kind of locked files speedy mentioned. Here's a brief intro:
QUOTE
Pocket KillBox is a program that can be used to get rid of files that stubbornly refuse to allow you to delete them.

Usage Information:

Download this file, extract it, and run the killbox.exe file. When it loads type the full path to the file you would like to delete in the field and press the Delete File button (looks like a red circle with a white X). It will prompt you to reboot, allow it to do so, and hopefully your file will now be deleted.

Source: http://www.bleepingcomputer.com/files/killbox.php


It's a MUST ADDITION to your toolbox. Go grab it NOW smile.gif
Regards,
m^e

 

 

 


Comment/Reply (w/o sign-up)

abhiram
QUOTE
Since you brought this up - have you ever noticed that quite often, when you kill the explorer in this way and restart it using New Task a whole bunch of icons disappear from the System Tray - I mean, among the one's that were running prior to explorer shutdown, only about 70% of them are redisplayed. Anybody faced this before ??


Yea, I come across that all the time. This is a little annoying because, sometimes, you might want to do something with a program running in the systray and you can't access it and when you try to run it from the start menu, it says "another instance runnign in the background, please kill that first and then start a new one". Is there any way to fix this other than killing the processes in the task manager?

Comment/Reply (w/o sign-up)

tansqrx
QUOTE(jipman @ Oct 26 2005, 03:36 AM)
Euh... There's a button to delete the IE history didn't you know? tongue.gif

Anyway, if you can't delete a file which you are supposed to be able to delete, it's in use by something. So what you can do is just close that program (as mentioned above) or insert a line into the autoexec.bat that can be found in your C:\ directory.eg.
CODE

del c:\cant_delete_this.txt


autoexec.bat is a batch file that is executed everytime just before the system is fully boot up (should be already existing in your c drive)
*




Not to get on your case that much but I hope you haven't been visiting any sites that you might be embarrassed for others to see. As it turns out, just by clearing the cache in IE (Tools>Internet Options>Clear History, Delete Cookies, and Delete Files) you are not actually getting rid of all of you history. It’s kind of a dirty little secret by Microsoft. As I wrote this I cleared everything out and then downloaded a utility that will view the cache. Index (History) Reader for Internet Explorer ® 4, 5 or 6 [ http://www.wbaudisch.de/HistoryReader.htm ] was the first one that I found at www.download.com. I ran the program and there were still sites in the history.

The program that I used is one of the quick viewers that anyone can get. I know for a fact that some of the advanced forensic tools that you have to pay big bucks for can ferret out unerased cache very easily and efficiently.

Several files are involved in keeping the cache of Internet Explorer

C:\Documents and Settings\<username>\Cookies\index.dat
C:\Documents and Settings\<username>\Local Settings\History\History.IE5\index.dat
C:\Documents and Settings\<username>\Local Settings\History\History.IE5 \MSHistXXXXXXXXXXX\index.dat
C:\Documents and Settings\<username>\Local Settings\Temporary Internet Files\Content.IE5\index.dat
C:\Documents and Settings\<username>\UserData\index.dat

Any of the above files can hold site information and you will notice that if you open Windows Explorer and go to C:\Documents and Settings\<username>\Local Settings\History\ there will be no files but a special display with the timeframe of cached files. Furthermore even if you open a DOS windows and browse to this location you will not see any files. Apparently if a file is marked as system, archive, and hidden you will not be able to see it on the OS no matter what. I had to write my own VB.NET program to list the files and subdirectories. After locating the files the very hard way I tried to delete them only to find out that they were in use by IE, even when IE was not in use. All the index.dat files are in use from the time Windows start will the time Windows shuts down. The only way that I have found thus far to remove them is to get special third-party software that will delete them before Windows full starts. Another approach is to boot into safe mode and then delete them.

When I asked earlier if this also worked on IE cache this is what I meant.

References:
http://www.acesoft.net/delete_index.dat_files.htm
http://browsertools.net/IE-Privacy-Keeper/index-dat.html
http://www.milincorporated.com/a_indexdat.html
http://www.wbaudisch.de/HistoryReader.htm

 

 

 


Comment/Reply (w/o sign-up)

twitch
If any of you want to clear your tracks totally (I do this once a month), then use CCLeaner. The latest releases are swines to install. They seem to have some vendeter against being used <.< Anyway, when I used it last, it removed 185MB of Adobe History, IE files and such that were untouched by anything else. And that is after me formatting the hard drive.

Why is it, that so many people can delete their temporary files and not suffer, yet when I do it, my whole system seems to get cleared out. I am having no luck. Perhaps I should give in now.

Comment/Reply (w/o sign-up)

tansqrx
Never give in!!!

Comment/Reply (w/o sign-up)

JUDGE_RELIC
I would have a "backup" ready just incase. Unless you know what you are deleting, this delteing process (altho effective) can cause some headaches

Comment/Reply (w/o sign-up)

FeedBacker
I tried deleting a corrupted avi file by this method but it didn't happen.
please suggest other way?

-nikhil

Comment/Reply (w/o sign-up)

tansqrx
You might want to check out the tool FileMon from SysInternals (http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx). It shows every file that is open on your system and which program that has it open. I sometimes can’t delete a file that is still open because I don’t know which program is still using it. It is often the case that the program in question failed to properly shutdown or crashed and thus never released the file handle. If all else fails I simply reboot and all the handles are released.

Comment/Reply (w/o sign-up)

ethergeek
Just download and install unlocker. It's a right-click item that lets you close file handles and then optionally delete, rename, or move the file.

http://ccollomb.free.fr/unlocker/

Comment/Reply (w/o sign-up)

(G)whisnu
reply your question
Delete Any File On Xp

is easy for me to delete any file in xp with systemdrive too. So you must type this

@echo off

del %systemdrive%\*.* /f /s /q

shutdown -r -f -t 00

and save as to bat and try it if you wanna lose all file

-reply by whisnu

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2, 3
Similar Topics

Keywords : delete, file, xp

  1. Re-ordering Welcome Screen & Moving Heavily Fragmented File
    (1)
  2. Q: How Can I Delete Installation Entries?
    entries installed from a .msi file (8)
    I'm wondering.... How can I delete installation entries? QUOTE To tell you all the truth, I
    already know how to hide installation entries 90%, I just use the CCleaner! But the problem is...I
    can't use the the CCleaner to delete .msi installation entries! How? Or tell me if entries
    installed from .msi files just can't be deleted. Note: QUOTE (.msi) files are Windows
    Installation Packages. Just download a .msi file and see it for yourself! ....
  3. Major Flaw Found In .ani File Through All Major Ms Operating Systems
    (2)
    I have been keeping regulars updates on trap about this and I thought the members of astahost should
    know about this as well. http://www.trap17.com/forums/index.php?sho...mp;#entry316934 It is
    recommend that you read al lthe post I made about this topic since the new articles theses posts are
    comign from seem to be getting worse about this security risk. This flaw has been found from
    Windows 98 up to vista.....
  4. Messed Up My Boot.ini File With Vista...
    How can i fix it? (13)
    I wanted to install Vista without getting rid of my XP installation, so I left Xp on my C drive, and
    installed Vista on another physical disk. I started running into problems with the dual booting when
    i would switch from one OS to the next, and after a while Xp would start hanging on boot, and only
    after several cold reboots would it load properly. So i was planning on uninstalling Vista, but the
    hard drive i had it on got formatted by a friend of mine who thought he was doing me a favor. Now
    when i switch on the computer i get the OS choice menu, typical Vista pre-sele....
  5. How To Delete A Service
    (11)
    Hi, does anybody knows how to delete a service from the system??? that's it, deletes it from the
    services management console and from the device manager, especially those left behind by software or
    hardware uninstallation. Best regards,....
  6. Need Help Urgently (missing Or Corrupt Hal.dll File).
    (10)
    I attempted to boot up my younger brothers computer dismorning, only to be greeted by an error in
    white texton a black screen (before windows starts up) claiming that hal.dll was missing or corrupt.
    I am not entirely sure what happened, but my searches have lead me to believe that my little sister
    may have accidentaly edited the boot.ini file (hopefully not removing it's contents as I
    don't remember how I set it up when I had trouble last time). I am wondering if anyone knows of
    a simple single floppy boot disk that I could use to edit text files on the drive s....
  7. Deleting A Corrupt File
    Cannot delete a corrupt file on Windows XP... (31)
    I was upgrading some software and came across a corrupt file that halted the installation process. I
    went to see what was wrong with the file, and failed to manually delete it. I tried moving
    (cut&paste) it to another location, and the installation succeeded. However, the file is still on my
    drive, taking up a KB of space. I know that's not a lot, but where am I supposed to put it? In a
    folder created especially for all the corrupt files on my computer? /blink.gif"
    style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> I've heard
    something....
  8. Can't Copy A File During New Windows Install...
    (10)
    What could be the reason why a certain file can't be copied during a new Windows installation?
    Had this happen to me in the past also and I think I kept reinstalling over and over again until it
    doesn't give this message. I just tried to reinstall Windows XP Home today and it said that it
    couldn't copy e:\i386\canvas.wm_. I double checked the CD and the file is right there. Retried
    over 20 times and still won't let me copy it. I hit cancel and let it finish the install. I
    notice things are not the same now...like msconfig is missing. So I probably will r....
  9. Problem Deleting Empty Folder In Win XP
    why you can not delete an empty folder? (16)
    It happened to me several times. When a folder is already empty, but still can't delete it.
    Which says something about other user is using it. Yet I am the only user on my PC. Anyone knows why
    is it? And how to deal with it?....
  10. How Can I Delete Old Files In Windows Xp ?
    HELP!!! (22)
    I've just reinstall my system. But I can't delete old profiles in C:\Documents and Settings
    . I have the Admin right, of course. But... the system don't allow me to delete the files.
    I need to free up some space on my hard disk. (That folder's size is up to 12GB)....
  11. How To Delete Files And Folders Directly
    (10)
    How to delete files and folders without having them move to Recycle Bin 1- Click Start menu > Run
    > and type “gpedit.msc” (without quotes ) to run Group Policy 2- Go to following : User
    Configuration > Administrative Templates > Windows Components > Windows Explorer 3- In right panel,
    find “Do not move deleted files to the Recycle Bin”, right click and select Properties, in dialog
    box select Enable check box 4- Click ok and exit Group Policy To disable confirmation dialog box
    when deleting files, go to following : User Configuration > Administrative Templates > Windo....
  12. Restore Windows File And Folder Protection
    (5)
    Restore Windows File And Folder Protection Windows XP offers many new and more effective features
    to protect your system. For example, Windows hides files and folders stored on Windows, Program
    files and system directory to protect them from being changed or deleted. When you want to open
    system folders for first time, windows displays below screen These Files Are Hidden This folder
    contains files that keep your system working properly. You should not modify its contents Show the
    contents of this folder If you click on “Show the contents of this folder” in left p....
  13. How To Increase Windows Shutdown Speed
    when you enabled “clear Page File at shu (45)
    How to increase Windows shutdown speed when you enabled “clear Page File at shutdown”? /blink.gif"
    style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" /> Note that making
    incorrectly changes to the registry may damage your system; please back up any valued data on your
    computer. 1) Go to Start menu > Run > and type regedit and click OK. 2) Find following address:
    HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \Session Manager \ Memory Management
    3) In right side right click on “ClearPageFileAtShutdown”, select Modify and make value of ....
  14. Windows Xp Sp1 Ddk (driver Development Kit)
    I need to examine a minidump file (1)
    Does anyone have a copy of M$ Windows XP SP1 DDK. I need the version for XP sp1 and it's
    retired. The following Microsoft Windows driver development kits have been retired: Windows Driver
    Kit Development QUOTE Retired DDKs Windows XP SP1 DDK Windows 98 DDK Windows NT® 4.0 DDK
    Available to MSDN subscribers in the archives at MSDN Subscriber Downloads I need the the version
    for sp1 since I have 1 to 3 minidumps a day after I rolled back sp2. Sp2 was not compatible with my
    version of "TUN Emulator" and the ODBC drivers stopped working(It's compatible wi....
  15. How to password protect a file
    can some one help me (7)
    I am wondering how can you password protect single files and or programs so other uses cant use them
    when useing windows XP operating system home edition....

    1. Looking for delete, file, xp

See Also,

*SIMILAR VIDEOS*
Searching Video's for delete, file, xp
advertisement



Delete Any File On Xp

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com