Solved

Command to restart the computer

Posted on 1998-08-11
7
211 Views
Last Modified: 2010-04-30
I am using Windows 95 and I need to know the command which can restart the computer in Visual Basic 5 when I press the command button. Please pass me the command in detail explaining what each phrase does. Besides that, I also want to know how to create a program such way that when I send the data from my house, it should go to my Hotmail server under my login. If that cannot be done, how about storing the data in other terminal such as my college pc. Thank you very much for your answers.
0
Comment
Question by:Xs21
  • 5
  • 2
7 Comments
 

Author Comment

by:Xs21
ID: 1468523
Edited text of question
0
 

Author Comment

by:Xs21
ID: 1468524
Thanks to whoever able to answer my questions.
0
 

Author Comment

by:Xs21
ID: 1468525
Thanks to whoever able to answer my questions.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 14

Accepted Solution

by:
waty earned 120 total points
ID: 1468526
see the following url :
http://www.mvps.org/vbnet/code/shell/undocshelldlgs.htm

there is a complete sample code
0
 
LVL 14

Expert Comment

by:waty
ID: 1468527
another solution simpler for you :

' *** Exit windows with one of the following results. dwReserved = 0
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

Public Sub ShutDownWindows(ByVal uFlags As Long)
   ' *** Exit the Windows
   
   Call ExitWindowsEx(uFlags, 0)

End Sub

0
 

Author Comment

by:Xs21
ID: 1468528
You only answered one question? I am using Ms Access. How do I have a database in my college while I'm at home trying to store my assignment in my college pc? I know that I have to be on line. Besides that, what are the coding?
0
 

Author Comment

by:Xs21
ID: 1468529
I wish that my comments are manually checked by the the experts next time instead of just transferring my points just like that to other experts. If this goes on, I'm sure everybody will stop asking questions and will only be answering them just for the points!!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
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…

790 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