I want 2 press a button and it will del a file.
Code:
Kill "C:\asdf.txt"thats what I have and thats what it should be. But I get an error when i run it.
Any help would be much appreciated
Private Sub Command1_cl
Kill "c:\asdf.txt"
End Sub
I GET THE FOLLOWING ERROR
Compile Error
invalid use of property
Microsoft Visual Basic 6.0 help needed....?
Kill does deletes the file in VB6
So, you need to check
1- The file is not already opened.
2- The file is not protected. If so, you need to unprotect it first
3- You have the Administrator privilages to access C:
Otherwize
e-mail me
Reply:Kill ends processes dude..doesnt delete files..
go through this http://msdn2.microsoft.com/en-us/library...
Hope this helps
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment