Ȩ > ±â¼úÁö¿ø > ¹¯°í´äÇϱâ

Question and Answer 131
Ref#: 64
OS shutdown

· »ç¿ëÁ¦Ç°: All

ÀúÈñ MMI ȨÆäÀÌÁö¿¡¼­

1. ´Ù¿î·Îµå -> Script Functions -> wwTech32.zip ÀÚ·á ´Ù¿î·Îµå

2. ¾ÐÃàÀ» Ǫ½Ã°í ÆÄÀÏÀ» C:\Program Files\Wonderware\InTouch Æú´õ¿¡ º¹»ç

3. InTouch Àç ½ÃÀÛ

4. Script ÇÔ¼ö¿¡¼­ "WWShutDownWinNT40()" »ç¿ë

5. »ç¿ë ¹æ¹ýÀº ¾Æ·¡ ³»¿ë ÂüÁ¶
-----------------------------------------------------------------------------------------------------------------------------------------------WWShutDownWinNT40 Shuts down Windows NT 4.0.
Function: Result = WWShutDownWinNT40( ShutDownFlag );
Return value: If an illegal ShutDownFlag is passed the return value will be a -2, if NT security will not allow the current user to shutdown NT or if there is a system error a -1 will be returned.
ShutDownFlag: (Integer) This tells the function how to shut the system down:
1 - Log the current user off NT.
2 - Shut down NT.
3 - Reboot the computer.


Example: This is how to cause Windows NT 4.0 to shutdown:

Result = WWShutDownWinNT40( 2 );
-----------------------------------------------------------------------------------------------------------------------------------------------

À§ °úÀåÀ¸·Î ¼³Á¤ Çϸé À©µµ¿ì¸¦ Shutdown ÇÒ ¼ö ÀÖ½À´Ï´Ù.

Script¿¡ ±Ã±ÝÇÑ »çÇ×À̳ª Áú¹® »çÇ×ÀÌ ÀÖÀ¸½Ã¸é ´Ù½Ã Áú¹® Çϼ¼¿ä...

¼ö°í Çϼ¼¿ä...

[¹®ÀÇ ³»¿ë]

· ¿î¿µÃ¼Á¦: Windows 2000 Pro
· »ç¿ëÁ¦Ç°: InTouch 8.0

È­¸é¿¡ ¹öÆ°À» ¸¸µé¾î click ÇÒ¶§
ÄÄÇ»Å͸¦ shutdownÇÏ´Â ÇÔ¼ö¿¡ ¾î¶²°Ô ÀÖ½À´Ï±î?

ÀÛ¼ºÀÚ: hdwook
ÀÛ¼ºÀÏ: 2006-06-06 ¿ÀÀü 11:41:00
Á¶È¸¼ö: 3760

ÀÌÀü±Û: Viewer ½ÇÇà½Ã Logger Error
´ÙÀ½±Û: Sql Sever ¿¬°áÀÌ ¾ÈµÇ¿©..

°ü·Ã±Û
Title Author Date Qry.
OS shutdown anonymous 2006-06-06 3616
>> Re: OS shutdown hdwook 2006-06-06 3760