I want to be able to delete the windows prefetch folder. However i don't know what's the right word to use so that the system finds automatically the right folder since not everybody installs windows on drive C:. i think it's %systemroot% but i'm getting an error. So please, enlighten me. Here's my code.
Dim file As String For Each file In System.IO.Directory.GetFiles("%systemroot%\prefetch") System.IO.File.Delete(file) Next file