hi guys,
i was wondering if there is a way to connect to a server share that requires a username and password without mapping it as a drive, what i wish to do is open a session so i can save a log file, but i do not wish the user who is running the application to see the share or the log file, i ahve played with an oledb connection but it kept complaining about workgroup information being missing.
Here is my code:
the first line (just so you know what the code is doing) is saving to a file in a location set by the varaible fileloc and filename 'nbkname' .txt
if anyone can help it would be much appriciated!
Jay!
i was wondering if there is a way to connect to a server share that requires a username and password without mapping it as a drive, what i wish to do is open a session so i can save a log file, but i do not wish the user who is running the application to see the share or the log file, i ahve played with an oledb connection but it kept complaining about workgroup information being missing.
Here is my code:
Code:
'''insert some kind of connection string here
Dim writer As New StreamWriter("" & fileloc & "" & nbkname & ".txt", True)
writer.WriteLine("" & tmpuser & " Opened Drive Mapper at " & dateTimeInfo & "")
writer.Close()
'''close the connection
if anyone can help it would be much appriciated!
Jay!
Comment