I would like to do a coding to delete the txt.file that i had created before using visual studio..can anyone teach me the coding?thank you.

hueikar
Recommended Answers
Jump to PostHave a look at this link with some sample code Here.
Jump to PostAre you using VB6 or VB.Net?
Jump to PostDownload the sample application Here.
This will load all files explorer style. Now use the code in the link I supplied earlier on to delete a selected file.:)
Jump to PostOpen file dialog will not work. With the link above, using explorer style, the user can load files and by clicking on a file, the path is returned. This way you can now delete the file as in -
Dim FileToDelete As String FileToDelete = "C:\Users\Owner\Documents\testDelete.txt" If …
All 14 Replies
AndreRet 526 Senior Poster

hueikar
AndreRet 526 Senior Poster

hueikar
AndreRet 526 Senior Poster

hueikar
mrclark 0 Light Poster
AndreRet 526 Senior Poster
mrclark 0 Light Poster

hueikar

hueikar
AndreRet 526 Senior Poster

hueikar
AndreRet commented: For not giving up on trying until it works. +4
AndreRet 526 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.