Discussion Locked

Vb Script to delet fies

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Documents and Settings\xyzname\Local Settings\Temp\*"), DeleteReadOnly

Above script does not work to del file & folders from profile with line 3-error. And try change path to c:\windows\temp - this comes with insuficent resource.
mspatel@ntlworld.com

3 replies

by mspatel

Const DeleteReadOnly = True
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("D:\Documents and Settings\XYZname\Local Settings\Temporary Internet Files\*.*"), DeleteReadOnly

This does not delete files

This discussion is closed to new replies.