-
Remember that dos command : exmaple "Dir C:\ /s > c:\log.txt "
when you edit the Log.txt file after executing this command you ll see a text file where all directories and subDir of C:\ are listed.... this command was usable from Qbasic ...
I tried to do it in VB didnt work first then I made the VB prog write a Bat File with the Command line in it then shell it ... but then again it didnt work ...
Any idea how to do it in a neat way ??
-
-
Try this:
Code:
Shell ("command.com /c dir /b C:\ > C:\cListing.txt"), vbNormalFocus
This will write every file and directory in a txt file.