Nov 9, 2003 #1 glmrenard Technical User Oct 29, 2002 52 FR Hello, How can I destroy, in fact I want to empty the temporary internet files from a win2003 computer ? Thanks in advance Guillaume
Hello, How can I destroy, in fact I want to empty the temporary internet files from a win2003 computer ? Thanks in advance Guillaume
Nov 16, 2003 Thread starter #2 glmrenard Technical User Oct 29, 2002 52 FR Hello, Does anyone know how it is possible to empty all the temporary internet files from all my users on a win2003 server. Thanks in advance Guillaume Upvote 0 Downvote
Hello, Does anyone know how it is possible to empty all the temporary internet files from all my users on a win2003 server. Thanks in advance Guillaume
Nov 17, 2003 #3 mrmovie Technical User Oct 2, 2002 3,094 GB to remove files from an OS you need to be able to delete them. use the filesystem object. Set FSO = Wscript.CreateObject("Scripting.FileSystem" Set objFolder = FSO.GetFolder("c:\temp" For Each aFile In objFolder.Files aFile.Delete If Err.Number <> 0 Then 'do something if it failed? End If Next or you could just do FSO.DeleteFolder("c:\blaa" not sure how that would react to a file being in use. if you use the first method with an 'on error resume next' you might find you get better results regards richard von moyla Upvote 0 Downvote
to remove files from an OS you need to be able to delete them. use the filesystem object. Set FSO = Wscript.CreateObject("Scripting.FileSystem" Set objFolder = FSO.GetFolder("c:\temp" For Each aFile In objFolder.Files aFile.Delete If Err.Number <> 0 Then 'do something if it failed? End If Next or you could just do FSO.DeleteFolder("c:\blaa" not sure how that would react to a file being in use. if you use the first method with an 'on error resume next' you might find you get better results regards richard von moyla