Output to .txt

D

Darko Bazulj

Hi,

How to make output in .txt file in next situation

Dim folderspec1 As String = "e:\a"
Dim n As String

Dim di As DirectoryInfo = New DirectoryInfo(folderspec1)
Dim dirs As DirectoryInfo() = di.GetDirectories

Dim diNext As DirectoryInfo

For Each diNext In dirs
Dim sw As New StreamWriter("e:\a\vvv-" & diNext.Name & ".txt")
n = "e:\a\vvv-" & diNext.Name & ".txt"
sw.WriteLine(diNext.FullName)
sw.Close()


---> Shell("fileacl " & diNext.FullName & " /QUOTE /SIMPLE /SUB
/ LINE", AppWinStyle.NormalFocus, True, 20000)
'How to write output to .txt file(Always get 0 in file for each folder.)


re2(diNext.FullName, n)
Console.WriteLine("++++++++++++++++++++")
sw.Close()
Nex

Thanks for help.

Regards,
Darko Bazulj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top