Hi, I need simple VB6 application to delete some temporary files inside specific folder.
This is my code and I can't make it work for current user - please Help.
Private Sub Command1_Click()
Dim fso As New Scripting.FileSystemObject
fso.DeleteFolder "C:\Users\user\test", True
fso.DeleteFolder "C:\Users\user\test2", True
fso.DeleteFolder userprofile & "\newfolder", True
Unload Me
End Sub