the code below allows me to connect to another machine and by clicking command2 i can send this file there. Now how can I make that connection without displaying the connection dialog box and having the name of the remote machine and password as part of my code. I want both bottom routins in one procedure. and a disconnect routine after the transfer is completed.
Private Sub Command1_Click()
res = Shell("rundll32.exe rnaui.dll,RnaDial "MyConnection", 1)
Private Sub Command2_Click()
Open "\\Computer1\MyFolder\MyFile.txt" For Output As #1
Write #1, "This a test"
thanks in advance