Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Visual Basic 6.0 Help


AldarHawk's Avatar
The Manager
0 0

I am attempting to write a program to access a file, look it over to see if a said string exists in it and then append the string to the file if it does not exist.

My main problem is getting VB to run through the entire file.

If you know how to do this please let me know.


AldarHawk's Avatar
The Manager
0 0

Got this done.

Now my next challenge…

Anyone who knows how to map network drives let me know.


ghost's Avatar
0 0

why not shell a batch file with the net use commmand ? ex

Print #1, "net use" & " " & "Driveletter here" & " " & "share here"
Print #1, "pause"
Close #1```

 ```markup then use the shell execute  to open it 
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Form_Load()
ShellExecute Me.hwnd, vbNullString, App.Path & "/map.bat", vbNullString, App.Path, 1
end sub