Hi all!
I need a code ...
I want to create a file removal which revieve directory files to delete from a text file ..
Text file example:
Code:C:\location\file1.exe
C:\location\file2.exe
C:\location\file3.exe
Printable View
Hi all!
I need a code ...
I want to create a file removal which revieve directory files to delete from a text file ..
Text file example:
Code:C:\location\file1.exe
C:\location\file2.exe
C:\location\file3.exe
If you want to copy and paste a code, try here.
Please use a descriptive title when posting Stunt3r. "I need a code" is meaningless and will make a lot of members ignore your topic. it also seems like you are demanding it.
You will need to read the streamwriter class for writing to a text file http://msdn.microsoft.com/en-us/libr...eamwriter.aspx
You will then need to add the items to an array and loop/delete as necessary.
vb Code:
Dim files = IO.File.ReadAllLines("path") For Each item As String In files 'delete file Next