[?]: WWShutDownWinNT40 for windows XP

Прочие SCADA: iFix, InTouch, Citect, ...
Post Reply
cisem1234
Posts: 4
Joined: Fri Dec 03, 2010 11:06 am

[?]: WWShutDownWinNT40 for windows XP

Post by cisem1234 » Thu Feb 10, 2011 9:08 am

Hi,
The function WWShutDownWinNT40 can be used to either restart, shutdown, or simply logoff a Windows session.

WWShutDownWinNT40 ( ShutDownFlag );
where ShutDownFlag is an integer value of 1, 2, or 3 signifying the following type of shutdown:
1 = Log the current user off of Windows
2 = Shut down Windows
3 = Reboot the PC

This function can be used in both Windows NT and Windows 2000.
How can I use this function in Windows XP or is there any other function like this.
This script is linked to the exit button in intouch.
It was used in intouch 7.0 and the operating system is NT4.0.
I convert the project from intouch 7.0 to 10.1 and so now i have to use this script in intouch 10.1 and the operating system XP.
Thank you for your advance.

Roman
Posts: 49
Joined: Wed Jun 28, 2006 4:21 am
Location: Russia

Re: [?]: WWShutDownWinNT40 for windows XP

Post by Roman » Fri Feb 11, 2011 8:30 am

You can use func wwdoscommand with argument "shutdown -r -f -t 00"


http://fa.sammicomputer.co.kr/TECH/html/wwdoscom.htm

Post Reply