Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Delete A Bunch Of Files Using Dos Statement, DOS Delete Command
vietonline
post Sep 26 2006, 10:17 PM
Post #1


Advanced Member
*******

Group: Members
Posts: 127
Joined: 10-July 06
Member No.: 26,374



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.
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 27 2006, 03:12 AM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,882
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



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
Go to the top of the page
 
+Quote Post
brainless
post Sep 27 2006, 09:09 PM
Post #3


Super Member
*********

Group: Members
Posts: 343
Joined: 16-April 05
From: Wardenburg/Northern Germany
Member No.: 5,763



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)
Go to the top of the page
 
+Quote Post
vietonline
post Sep 28 2006, 06:57 PM
Post #4


Advanced Member
*******

Group: Members
Posts: 127
Joined: 10-July 06
Member No.: 26,374



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
Go to the top of the page
 
+Quote Post
iGuest
post Mar 19 2008, 01:13 PM
Post #5


Trap Double Mocha Member
***************

Group: Members
Posts: 2,360
Joined: 21-September 07
Member No.: 50,369



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Delete An Undeleatable File...(27)
  2. Quick Tricks For Defeating " Undeletable " Files(6)
  3. What Is The "type" Command?(6)
  4. Sharing The Files With Proffesional(2)
  5. What Is The Best Way To Get Files?(4)
  6. What Happens To A File When You Delete It From Windows ?(14)
  7. Strange .log Files On My Desktop(10)
  8. How To Delete An Undeleatable File(1)
  9. How To Duplicate Folders Without Copying Files In Them?(7)
  10. Need Help With A Network / Printer Lock Up(7)
  11. Converting Audio Files In Vista(7)


 



- Lo-Fi Version Time is now: 25th July 2008 - 08:08 PM