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