Solved

LAN Enable/Disable Using VB 6.0

Posted on 2008-06-16
1
894 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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.
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

838 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