Is it possible to delete files(any file) in the system from within vb??I ask this because it is possible to create a text file and save it from within vb..there must be a way to delete the created files i suppose,but i dont know how!
deleting files
Collapse
X
-
Originally posted by vdraceilIs it possible to delete files(any file) in the system from within vb??I ask this because it is possible to create a text file and save it from within vb..there must be a way to delete the created files i suppose,but i dont know how!
[CODE=vb]dim obj1 as object
set obj1 = createobject("s cripting.filesy stemobject")
obj1.deletefile "c:\file.tx t", true[/CODE]
HTH -
Originally posted by vdraceilIs it possible to delete files(any file) in the system from within vb??I ask this because it is possible to create a text file and save it from within vb..there must be a way to delete the created files i suppose,but i dont know how!
Code:Kill "C:\DeadFile.txt"
Comment
Comment