Paul Randall wrote:
> "Bill in Co." <(E-Mail Removed)> wrote in message
> news:ul%(E-Mail Removed)...
>> Pegasus [MVP] wrote:
>>> "Bill in Co." <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Can someone tell me how to do this? I want to simply run it to delete
>>>> the .bak files (using del *.bak) produced every time I compact the OE
>>>> folders, instead of having to do this manually each time (by selecting
>>>> them each time in the recycle bin, which is a hassle).
>>>>
>>>> I know how to write the batch file, but the Recycle folder is a system
>>>> folder, and is apparently locked down so I can't ever get it to work.
>>>> And trying to remove the system attribute on the Recycler/Recyled
>>>> folder doesn't seem to work either (nor is it probably a good idea).
>>>
>>> Deleting a file from the Recycled folder by means of a batch file is
>>> easy, provided that you have appropriate privileges.
>>
>> I do - I'm the Administator and sole user of my computer.
>>
>>> However, there are two issues
>>> that are more serious:
>>> - Interfering with this folder is likely to corrupt the Recycle Bin.
>>
>> Not if I do it right. :-)
>>
>>> - Deleted files are not stored under their original names but under some
>>> artificial name.
>>
>> I can identify the file names, but my access to the folder in a batch
>> file
>> to do such operations isn't working, that's all. You know, you get the
>> standard "not resetting the system attribute.." message, or whatever,
>> when you attempt it in the batch file.
>>
>>> The link between the two names appears to be stored in a
>>> filed called INFO2 which is also kept in the this folder. Extracting the
>>> original name from INFO2 does not seem to be straightforward.
>>
>> But again, I think I have access to the filenames ok.
>>
>>> In view of the above I suggest you drop the idea. If the OE backup files
>>> cause your disk to get full to capacity then it's time to buy a larger
>>> disk.
>>
>> No, that's not the issue. The issue is what I explained in my response
>> to
>> Dave. (I have several files in there I want to keep; this is selective)
>
> Hi, Dave
> If you have some VBScripting skills and can groups.google the
> microsoft.public.scripting.vbscript newsgroup, you should be able to find
> some sample scripts and snippits that use the shell object to get into
> special folders and locate and delete the files of interest.
> This thread might contain most of the info you need.
> http://groups.google.com/g/
78d7fef5/t/33e20952f1cd6185/d/35a48cb73ef9c816
>
> -Paul Randall
I'm not sure, but I think you're directing this to me as the OP, and not
Dave.
I know how to delete files in a .bat file, but the problem is being able to
do it with the Recyled folder, which seems to be totally guarded against any
such "encroachments". Are you saying there is no way to do it without
resorting to writing some sort of a VBS script?