From: Tobbe L. <tob...@gm...> - 2007-09-30 08:56:28
|
Hi I'm writing a program entirely in lua where the gui part is done with wxlua. Now I need this program to be able to reboot the computer and to logoff the current user. This program will only be used on Windows, so I tried os.execute("shutdown -r -t 0") and os.execute("shutdown -l -t 0"), and it did work (for Win2000 and WinXP at least), but the problem is that it flashed a dos prompt on the screen for a split second. Is there any way to do what I want without having that dos window showing? Thanks in advance //Tobbe |