I am looking to delete OfficeFileCache folder from the current user\'s computer. Currently I have..
Option Explicit Dim obj : Set obj =CreateObject (\"wscrip
If you're using some path like
C:\Users\%username%\AppData\Local\...
This is better:
%LocalAppData%\...
So
Fso.DeleteFolder Obj.ExpandEnvironmentStrings("%LocalAppData%\Microsoft\Office\16.0\OfficeFileCache")
does it better, in case the user set their %UserProfile% to another directory.
%UserProfile%