?
Solved

Programmatically call synchronizaiton wizard & shutdown computer?

Posted on 2004-09-12
2
Medium Priority
?
296 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
[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
2 Comments
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
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…
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…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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