Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
i do not want to kill the subdirectory or folder. ( It is an IE cache file
and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
Use this but be careful to get the path correct or you could have a very bad
day. Sub Button1_Click() Kill "c:\yourdirectory\*.*" End Sub Mike "wbntravis" wrote: i do not want to kill the subdirectory or folder. ( It is an IE cache file and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
Just to add a little info to Mikes caution: files deleted with Kill are not
placed in the recycle bin. They are just deleted. -- Regards, Tom Ogilvy "Mike" wrote: Use this but be careful to get the path correct or you could have a very bad day. Sub Button1_Click() Kill "c:\yourdirectory\*.*" End Sub Mike "wbntravis" wrote: i do not want to kill the subdirectory or folder. ( It is an IE cache file and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
Although Mike has shown you how to delete files in a folder I'd be a bit
careful about messing with IE's cache files. There are dependencies between the sub folders and hidden dat files. Unless you fully understand how IE manages those files (I don't) it's generally recommended only to delete their contents from a batch file at startup. A bit more in this old thread. For some reason the OP's posts don't appear visible in Google, (at least not for me) though they can be seen with 'Show quoted text' http://tinyurl.com/2vqrjv Regards, Peter T "wbntravis" wrote in message ... i do not want to kill the subdirectory or folder. ( It is an IE cache file and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
Chip have info about that on his site
You can find the link in the delete section on this page http://www.rondebruin.nl/folder.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Tom Ogilvy" wrote in message ... Just to add a little info to Mikes caution: files deleted with Kill are not placed in the recycle bin. They are just deleted. -- Regards, Tom Ogilvy "Mike" wrote: Use this but be careful to get the path correct or you could have a very bad day. Sub Button1_Click() Kill "c:\yourdirectory\*.*" End Sub Mike "wbntravis" wrote: i do not want to kill the subdirectory or folder. ( It is an IE cache file and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is there a way to kill all files in a folder?
Thanks all of you!
I did the folder and dos wildcard thing and it did not work for me BEFORE I asked the question. Because it did not work... I asked the question. You all gave me great food for thought though- which I will continue to study thanks. -- wbnTravis, from Oklahoma "Tom Ogilvy" wrote: Just to add a little info to Mikes caution: files deleted with Kill are not placed in the recycle bin. They are just deleted. -- Regards, Tom Ogilvy "Mike" wrote: Use this but be careful to get the path correct or you could have a very bad day. Sub Button1_Click() Kill "c:\yourdirectory\*.*" End Sub Mike "wbntravis" wrote: i do not want to kill the subdirectory or folder. ( It is an IE cache file and I just want to go in and clean up what is in the cache.) The folder, I want to leave alone.... Thanks in advance. wbnTravis Oklahoma |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pulling pdf files from general folder to specific folder | Excel Discussion (Misc queries) | |||
How to kill the zipped files in C:\Document and Settings\LogginName\Temp\ using code for this strange Problem | Excel Discussion (Misc queries) | |||
Kill Files in Excel 2000 | Excel Programming | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Discussion (Misc queries) | |||
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? | Excel Programming |