[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

files copy

Posted on 1999-06-21
3
Medium Priority
?
139 Views
Last Modified: 2010-05-02
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()
Dim res
res = Shell("rundll32.exe rnaui.dll,RnaDial "MyConnection", 1)
End Sub

Private Sub Command2_Click()
Open "\\Computer1\MyFolder\MyFile.txt" For Output As #1

Write #1, "This a test"

Close #1

End Sub

thanks in advance
0
Comment
Question by:abidsml
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Inteqam earned 100 total points
ID: 1518787
0
 
LVL 7

Expert Comment

by:Inteqam
ID: 1518788
0
 

Author Comment

by:abidsml
ID: 1518789
thanks, I looked at the webpage, I dont know... I think what I need is to join the two events i have put up in one by skipping the dialup box whix appears. The code in the proposed site is beyond my brain I think.. i just could not follow.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question