Solved

LAN Enable/Disable Using VB 6.0

Posted on 2008-06-16
1
879 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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now