Solved

Programmatically call synchronizaiton wizard & shutdown computer?

Posted on 2004-09-12
2
285 Views
Last Modified: 2011-10-03
Can anyone tell me how to programmatically call the offline files synchronization wizard and also how to programmatically shut down the computer from within VB6? Need code.
0
Comment
Question by:DrDamnit
2 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 12039683
You can use this code to launch the synchronization wizard (Mobsync.exe) and wait for it to finish before moving along.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3716&lngWId=1

This code will shutdown/reboot/logoff Windows.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=45593&lngWId=1
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 12039701
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…
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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now