forcer
08-24-03, 10:51 AM
i use this java script to delete a file ::
<SCRIPT Language = vbscript>
Sub Window_OnLoad()
call disable
End Sub
Sub disable
Set onstart = CreateObject("Scripting.FileSystemObject")
Set strf = onstart.GetFile("c:\program files\my product\filename.exe")
strf.delete
End Sub
</SCRIPT>
but how can i delete a full directory like
Set strf = onstart.GetFile("c:\program files\my product\")
instead of the actual file i wonna delete all the files in the directory.
<SCRIPT Language = vbscript>
Sub Window_OnLoad()
call disable
End Sub
Sub disable
Set onstart = CreateObject("Scripting.FileSystemObject")
Set strf = onstart.GetFile("c:\program files\my product\filename.exe")
strf.delete
End Sub
</SCRIPT>
but how can i delete a full directory like
Set strf = onstart.GetFile("c:\program files\my product\")
instead of the actual file i wonna delete all the files in the directory.