[pchelpers] Re: Access Denied

Hi John,

Friday, February 20, 2004, 9:01:12 PM, you wrote:

JD> I'm guessing that if the commands were practical, the paths would need
JD> to be altered because of that. The important question though, is would
JD> they run?

XP doesn't have DelTree; instead, you'd use DEL /Q /S:

Deletes one or more files.

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

  names         Specifies a list of one or more files or directories.
                Wildcards may be used to delete multiple files. If a
                directory is specified, all files within the directory
                will be deleted.

  /P            Prompts for confirmation before deleting each file.
  /F            Force deleting of read-only files.
  /S            Delete specified files from all subdirectories.
  /Q            Quiet mode, do not ask if ok to delete on global wildcard
  /A            Selects files to delete based on attributes
  attributes    R  Read-only files            S  System files
                H  Hidden files               A  Files ready for archiving
                -  Prefix meaning not

If Command Extensions are enabled DEL and ERASE change as follows:

The display semantics of the /S switch are reversed in that it shows
you only the files that are deleted, not the ones it could not find.


JD> Scott McNay wrote:

>>Hi John,
>>
>>Friday, February 13, 2004, 12:39:59 PM, you wrote:
>>
>>JD> That would be nice. Anyone know what does it in XP?
>>
>>  
>>
>>>>Is there something like this for Windows XP Pro?
>>>>      
>>>>
>>
>>  
>>
>>>>>Have you tried putting commands like these into your AUTOEXEC.BAT file ?
>>>>>C:\WINDOWS\COMMAND\deltree /y C:\Windows\temp\*.*
>>>>>C:\WINDOWS\COMMAND\deltree /y C:\Windows\TEMPOR~1\*.*
>>>>>C:\WINDOWS\COMMAND\deltree /y C:\Windows\cookies\*.*
>>>>>C:\WINDOWS\COMMAND\deltree /y C:\Program
>>>>>Files\Netscape\Users\john_modec\Cache\*.*
>>>>>        
>>>>>
>>
>>It probably does very litle, since 2K and XP put those folders in
>>different locations.
>>
>>--Scott.
>>



--Scott.

Regards, John Durham (list moderator) <http://modecideas.com/contact.html?sig>
Freelists login at http://www.freelists.org/cgi-bin/lsg2.cgi
List archives at http://www.freelists.org/archives/pchelpers
PC-HELPERS list subscribe/unsub at http://modecideas.com/discuss.htm?sig
Good advice is like good paint- it only works if applied.

Other related posts: