VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Deleting a file

by Bhuwan Chand Joshi (69 Submissions)
Category: Windows System Services
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 21st July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Deleting a file

Rate Deleting a file



'Make a reference to a Microsoft Scripting Runtime Library

Public sub Form_Load()

Dim fso As New FileSystemObject
fso.DeleteFile "D:\Test.txt"

End Sub

'This program delete a file Test.txt from the drive "D:"  


Download this snippet    Add to My Saved Code

Deleting a file Comments

No comments have been posted about Deleting a file. Why not be the first to post a comment about Deleting a file.

Post your comment

Subject:
Message:
0/1000 characters