Results 1 to 3 of 3

Thread: Debug file written to random directories!?!?!

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    This code :

    -----
    Public Sub DebugFile(str As String)

    Dim DFile As Integer

    DFile = FreeFile
    Open "dbg.txt" For Append As #DFile

    Print #DFile, str

    Close #DFile

    End Sub
    -----

    seems to write to either the current directory, or into the dir i installed vb into... why? how do i make it write into the current directory always?

    a

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    London
    Posts
    290
    actually, looks like it puts it in a different place depending on whether you run the project from within the vb ide, or create an .exe!

    a.

  3. #3

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