Author Topic: How to remove old desktop and archive folders  (Read 2325 times)

Kif

  • Global Moderator
  • Newbie
  • *****
  • Posts: 6
    • View Profile
    • Homepage of Kim Foder
How to remove old desktop and archive folders
« on: 2008.12.02, 23:24:06 »
Hi

While doing some hard disk cleaning, I found I have several copies of old desktop, temporary desktop, installed features and archive folders in many weird places.

The old solution, moving to a floppy and format floppy, is not an option as I don't have a floppy any more, and I'm not allowed to move the folders to a memory card.

I know there are another way (I have used it a couple of years ago, but cannot remember how any more) but a search of the net has not yielded any solutions  :(

Does anyone here know how to do it ?

Thanks

Kim Foder

RobertM

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2034
    • View Profile
    • A.I.BuiltPC - using OS/2 Warp Server & eComStation for Custom Web and Database Solutions
Re: How to remove old desktop and archive folders
« Reply #1 on: 2008.12.03, 02:25:25 »
Hi Kim,

Define "weird places" - if not in the root directory of the boot drive (and you havent tried to open them with the WPS), you should be able to use xdel (Hobbes) to delete them.

Back up your INI files as a precaution though.

Robert
|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


Pete

  • Hero Member
  • *****
  • Posts: 865
    • View Profile
Re: How to remove old desktop and archive folders
« Reply #2 on: 2008.12.03, 02:46:30 »
Hi Kim

Simple answer: Open a command window and use deltree.cmd to delete the offending Desktop directory trees eg

[K:\]deltree \driveh\26102008\desktop
Are you sure? (Y/N)
y

The screen then blurs as it reports success or failure. The bottom line should look like this

\driveh\26102008\desktop  ........ Directory removal was successful.


Just handy that I'm doing a little backup "cleanup" at the time the question got asked.

What? Where to get deltree.cmd? Ummm... probably hobbes... Aha! Here http://hobbes.nmsu.edu/download/pub/os2/util/file/deltree.zip

Regards

Pete

DavidG

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
Re: How to remove old desktop and archive folders
« Reply #3 on: 2008.12.04, 19:42:06 »
If you use FM/2, I believe it is capable of deleting a lot of this garbage.

David

Kif

  • Global Moderator
  • Newbie
  • *****
  • Posts: 6
    • View Profile
    • Homepage of Kim Foder
Re: How to remove old desktop and archive folders
« Reply #4 on: 2008.12.05, 23:18:32 »
Hi

Thanks for your help, I did try deltree and it worked without any problems.

I'm fairly sure this was not the way I did it last time, but as I remember it this is far easier !

Kim Foder

Pete

  • Hero Member
  • *****
  • Posts: 865
    • View Profile
Re: How to remove old desktop and archive folders
« Reply #5 on: 2008.12.07, 05:25:21 »
Hi Kim

Glad it helped  :-)

I have found the odd occasion where dletree has failed to delete a directory but running the following command against the directory followed by another go with deltree always works

attrib -r -s -h [directory_to_delete]\* /s

Change [directory_to_delete] to whatever the directory is called.

Regards

Pete