Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


files copy

Posted on 1999-06-21
Medium Priority
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
Question by:abidsml
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

Inteqam earned 100 total points
ID: 1518787

Expert Comment

ID: 1518788

Author Comment

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.

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

722 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