Results 1 to 2 of 2

Thread: Newbie question (About DIR)

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Nashville, TN
    Posts
    54

    Post

    Here is what I am trying to do. I need to have a user click on a button and then a certain directory (example c:\data) is accessed and I need to out put this to a text file.

    I know the old sheel way would be to do a dir c:\data>test.txt

    but any other way possible?

    Thanks again

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Posts
    120

    Post


    use the "Open (For Output)" Fxn
    in conjunction with Print or Write

    *************
    ' Open a file for output
    Open "test.txt" For Output As #1

    ' Write to the test file
    Print #1, "c:\data"

    ' Close the file
    Close #1
    *************

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