Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

LAN Enable/Disable Using VB 6.0

Posted on 2008-06-16
1
Medium Priority
?
927 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
[X]
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
1 Comment
 
LVL 24

Accepted Solution

by:
purplepomegranite earned 375 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Suggested Courses

618 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