Solved

LAN Enable/Disable Using VB 6.0

Posted on 2008-06-16
1
889 Views
Last Modified: 2013-11-25
Dear,
I was writing a code to enable and disbale LAN on the PC using VB 6.0. Initially LAN is disbaled, the code enables it perform the action and disables LAN again. The next statement in the code after enabling the LAN connection is Xcopy statement where the copy operation is performed from other PC in LAN. As the enabling of LAN connection takes some time xcopy operation may not succeed. Is there any way of taking the code in to sleep mode for 3 to 4 seconds and then start executing things.
0
Comment
Question by:shoeb_fbd
1 Comment
 
LVL 24

Accepted Solution

by:
purplepomegranite earned 125 total points
ID: 21792834
http://www.freevbcode.com/ShowCode.Asp?ID=7556

There is a Windows API function that sleeps, and can be used in VB6.  Everything you need is in the above link - if you need any more help just ask!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

776 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