Results 1 to 3 of 3

Thread: Good old Dir .... > Log.Dat

  1. #1

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261
    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 ??
    - regards -
    - razzaj -

  2. #2

  3. #3
    Guest
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width