What are you suppose to do in-order to run the program, just paste the code into a new project or add a control (if so which control/s)?
Edit:
I receive an error:
Unable to open module file 'C:\Users\User\AppData\Local\Temp\.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.vb': System Error &H80070002& C:\Users\User\AppData\Local\Temp\.NETFramework,Version=v4.0,Profile=Client.AssemblyAttributes.vb
and all that appears to happen when I run the project and click the command button is the message box appears informing me that the cache has been cleared.
Last edited by Nightwalker83; Jul 30th, 2012 at 08:41 PM.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Nothing appears to be deleted from the Appdata/local/temp either.
Last edited by Nightwalker83; Jul 30th, 2012 at 08:55 PM.
Reason: Adding more!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
So it's suppose to delete all the files/folders in the above directory?
Edit:
It will not work if the file you are trying to delete is open. You need to check whether or not the file is open before you can delete it.
Something like this should work for the check method.
Last edited by Nightwalker83; Jul 31st, 2012 at 12:31 AM.
Reason: Adding more!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Well what I did is added a On Error resume next on the For loop, which all temp folders, most of the time have files in use, it just skips all the ones in use, and deletes the one's that are not.
Using On Error Resume Next such as that is bad practice.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
With the GetFiles functions, the result is not an array of strings right? If I'm not mistaken My.Computer.FileSystem.DeleteFile() takes a string. If you use TMPfile.FileName it may work? Also, Nightwalker83 makes a good point with the use of On Error Resume Next. Maybe use try/catch as an alternative? At least it lets you know what type of errors you're dealing with.