Jul 26, 2008

Delete A Bunch Of Files Using Dos Statement - DOS Delete Command

Free Web Hosting, No Ads > CONTRIBUTE > Computers

free web hosting

Delete A Bunch Of Files Using Dos Statement - DOS Delete Command

vietonline
when we are running a program.they usually create many files that we don't need.Anyone knows the dos commands that we can delete those file at once?if you know could you please tell me that.thanks
Notice from jlhaslip:
Edit title for spelling error.

Reply

jlhaslip
Boy, this topic takes me back in time to way back in the early 80's...

DOS, or Disk Operating System, versions were all around. MS-DOS, IBM-DOS, PC-DOS, etc.

DOS was a small 'kernel' of code which was used to manage the file system on early 'Personal Computers' (PC's).

One of the commands was exactly the one you are asking about.

'Delete' was used to erase the reference to a file, and not the contents.

Esentially, the delete command erased the 'location' of a file from the file's directory listing, so once the file was 'deleted', the system could not find the file. The 'contents' of the file actually remained on the disk, but the system had no starting reference point to find it.

Another thing to remember is that the file was never stored continuously on the disk medium. The file was split up into 'chunks' of typically 512 bytes and the chunks were stored onto non-contiguous 'sectors' on a disk. The location of the next sector was stored with the sector which preceded it, so if you could not find the starting point of the chain of sectors, you could not find the 'links' in the chain which were the file contents. Therefore, at least theoretically, by erasing the starting point for the file, the file was not on the system and the disk space was available for other files to be written over it, thereby eliminating the file.

Confused yet? Anyways, I don't recall all of the details and particulars of the early DOS systems, but I do remember that Norton Utilities was "sometimes" able to 'recover' files by reading an entire disk and mapping the sectors and such so that "sometimes" files which were 'deleted' could actually be 'recovered' or re-built. It was critical to the recovery process that you hadn't actually over-written the sectors containing any parts of the original file.

Since those days, I think the FAT (File Allocation Tables) are much more efficient and accurate than the earlier DOS systems, but I digress...

Anyways, I found a link which does a fairly good job of explaining the Delete command and particularly explaining the implementation of the various methods of using *wildcards* and the selection criteria of the list of files you are able to target for deletion. These are explained near the bottom of the page.

http://www.computerhope.com/delhlp.htm#01

 

 

 


Reply

brainless
whatever you're going to do ... don't do anything as stupid as me in my first Linux environment... "rm -f /etc _cfg_*" (well, anyone who understands will have a good laugh now wink.gif)

Reply

vietonline
QUOTE(brainless @ Sep 27 2006, 02:09 PM) *

whatever you're going to do ... don't do anything as stupid as me in my first Linux environment... "rm -f /etc _cfg_*" (well, anyone who understands will have a good laugh now wink.gif)

it is not this command,anyone has another one.thanks

Reply

iGuest
virus ,.exe detected and can be removed
Delete A Bunch Of Files Using Dos Statement

Name: ,.Exe
Service : ,.Exe
Locaton: c:\,.Exe
c:\windows\Debug\,.Exe
and all drive [hidden]
Effects: open all the local drives window whe sysytem is started

So cann delete by ragistry and manula settings or an y software suppots

Delete the key

HKLM\SOFTWARE\Microsot\Window\CurrentVersion\RUN\,.Exe


And can be removed through system mechanic pro7

Reply



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*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. clear old version files dos - 5.11 hr back. (1)
  2. delete oldest file dos - 8.04 hr back. (1)
  3. dos delete files - 8.10 hr back. (1)
  4. code to delete file using dos - 11.35 hr back. (1)
  5. dos delete command - 11.72 hr back. (1)
  6. removing computer virus through dos commands - 15.75 hr back. (1)
  7. how we delete any folder through dos - 18.09 hr back. (1)
  8. how delete old log files in dos - 24.12 hr back. (1)
  9. delete in dos - 26.08 hr back. (1)
  10. deleting a file through dos - 26.86 hr back. (1)
  11. delete dos command remove - 29.36 hr back. (1)
  12. dos remove - 32.91 hr back. (1)
  13. how to open mp3 file in dos - 33.49 hr back. (1)
  14. dos delete commands - 33.85 hr back. (1)
Similar Topics

Keywords : delete bunch files dos statement dos delete command

  1. Converting Audio Files In Vista - how do you do it? (7)
  2. Strange .log Files On My Desktop - (10)
    Since this morning, two new visitors has camped out on my desktop. One is lcapi0.log , & when you
    open it you get: QUOTE 19:50:36.703 F20:F24 WARN :: module=lcapi flavor=fre
    version=1.7.226.0 (RTC Version 4.3.5371.0) 19:50:38.109 F20:F24 INFO :: Initialize(0) 19:50:38.609
    F20:F24 INFO :: MUI not Enabled 19:50:44.625 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656
    F20:F24 INFO :: SetDeviceDisabled 0->1 19:50:44.656 F20:F24 TRACE :: SetDevice 00000000->00000000
    19:50:44.656 F20:F24 INFO :: SetDeviceDisabled 0->0 19:50:44.656 F20:F24 TRACE :: SetDevic...
  3. What Happens To A File When You Delete It From Windows ? - (14)
    now have you ever wondered what happens to a file when you delete it and empty the recycle bin ?
    surely it should not be in the computer by then ?? well i ahd a big sprise waiting for today morning
    when i turned on my computer , i will tell you waht happened , yesterday a colleague of mine put sum
    flash files on my desktop and when i went home i deleted them and emptied recycle bin assuming he
    should have made a copy and has taken to his computer , but when i turned on my office computer this
    morning the files i deleted were sitting right on my desktop again !! b...
  4. How To Delete An Undeleatable File... - on your computer! (27)
    Open a command prompt window and leave it open. Close all open programs. Click Start, Run and
    enter TASKMGR.EXE - go to the Processes tab and End Process on Explorer.exe. Leave Task Manager
    open. Go back to the Command Prompt window and change to the directory the AVI (or other undeletable
    file) is located in. At the command prompt type DEL where is the file you wish to delete. Go
    back to Task Manager, click File, New Task and enter EXPLORER.EXE to restart the GUI shell. Close
    Task Manager. Jack....
  5. Need Help With A Network / Printer Lock Up - Cannot delete file in que, so no printing can be done (7)
    Ok, so the way the network is set up is like this, (with more computers but this is just an example)
    Computer (a -----> network hub ^ l l l v Printer (1 So computer (b
    tryed to print a document on printer (1, now at the top of the que (since 7 this morning, it is now
    7 in the evening) is that document, at about 8 this morning the printing task was "Deleted" so the
    current status is "Deleting printing" but in no way will it delete the printing (it has had I have
    tryed to delete the printing from Computer (a and Computer (b and i have res...
  6. How To Duplicate Folders Without Copying Files In Them? - hard question, isnt it? (7)
    Here s the thing. I have large number of folders with files in it. i need to copy folders but
    without files in it, becuase i dont want to write folders name manually( i have about 5000 folders)
    and i guess i wont be quickly finished. why would i wanted to do that. it s kinda like this: you
    have dvd file and you want to record the soundtrack into mp3 file. but you want to save them on
    other disc. its easy with 1-10 folders but i have situation with 5000 folders and i need to do this.
    so can anyone please help me?...
  7. How To Delete An Undeleatable File - (1)
    This is only for Windows Operating System. QUOTE First: Take note and copy the filename of
    that problematic file including the extension name, if you are not aware of the extension name, open
    My Computer, at the top menu click on Tools, then Folder Options, go to View Section and uncheck
    “Hide Extensions for known file types”. Click Apply and OK to exit, you should now see
    the whole filename. Now, open Notepad then create a file, you don’t need to put anything on
    it, save it with a filename that is the same as the undeletable file in a different ...
  8. What Is The Best Way To Get Files? - cast ur votes here (4)
    hey all..... let everyone know what the best way to get a file,......(which may cost something if u
    buy it)!!!!!...
  9. Sharing The Files With Proffesional - I got the cable (2)
    Hey i got the cable to connect the computers. There connected now but now i need to find out how to
    share files from windows XP proffessional with Home edition. The connection shows as shared but
    when i try to click the home computer(proffessional) it says that i dont have permission to access
    it. I am an administrater of both computers and need to figure out how to connect them both
    together. And also i would like to know how to share the wireless connection from my laptop with my
    home computer. If someone could give me a link or instructions on how to do it i woul...
  10. Quick Tricks For Defeating " Undeletable " Files - May Save You Some Pain (6)
    We've all dealt with viruses. Some of us deal with viruses a lot. And others make their living
    spanking 'em like the naughty issues they are. With any amount of virus-slapping experiance
    youve likely come across that mysteriously " undeletable " file that, for some unGodly reason, cant
    be removed from your precious eMachine. Please note that if you consider your eMachine precious then
    your standards are ludicrously low, but I digress. The reason you cannot delete the file (
    assuming some kind of permission has not been modified to lock it down preventing deleti...
  11. What Is The "type" Command? - I need help (6)
    I had one of those scandisk errors on my computer. It found a problem and said it would clean the
    disk, but to make an undo disk. I put in a floppy disk (don't say it), and then had it put on
    an undo in case it messed up something. It said I could use the TYPE command to view the files that
    it needed to remove/clean. What is the TYPE command....
  12. How To Install .style Files On Vbulletin? - For version 3.07 (4)
    Hi, i have vBulletin Version 3.07 on my site up right now. I want to install a style called air and
    when i try to install it by putting the .style file in the box, it doesn't work. It says i need
    a .xml file but the .xml files were not included with the download. Anyone know what i have to do in
    order to make the style load and work properly? thanks in advance....
  13. How Do I Delete Info From Mysql Database Through My Cpanle? - - help (1)
    I want to delete some info in a MySql database. Can I do that through my cPanle? if not, I need to
    know even through command prompt. Thanks\ nickmealey ...



Looking for delete, bunch, files, dos, statement, dos, delete, command

Searching Video's for delete, bunch, files, dos, statement, dos, delete, command
advertisement



Delete A Bunch Of Files Using Dos Statement - DOS Delete Command



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE