2012-08-17, 22:59
"C:\Windows\System32\tsdiscon.exe"
I want to run this command from the main menu. I already have the skin modded to do this, the problem is that when I click on the menu item and run it i get an error saying windows can't find it. This makes no sense at all to me since I can run the exact same command from a console windows (cmd.exe) and it runs find. I can run it from a batch and it runs fine. the problem seems to have to do with XBMC.
The reason I want to do this is because I run XBMC as the shell for one of my user accounts on the computer and I want a way to easily switch users. tsdiscon.exe disconnects the session which leaves the user log in but send you back to the switch user screen.
I have tried the following
tsdiscon.bat contains
I want to run this command from the main menu. I already have the skin modded to do this, the problem is that when I click on the menu item and run it i get an error saying windows can't find it. This makes no sense at all to me since I can run the exact same command from a console windows (cmd.exe) and it runs find. I can run it from a batch and it runs fine. the problem seems to have to do with XBMC.
The reason I want to do this is because I run XBMC as the shell for one of my user accounts on the computer and I want a way to easily switch users. tsdiscon.exe disconnects the session which leaves the user log in but send you back to the switch user screen.
I have tried the following
Code:
<onclick>System.Exec(""C:\Windows\System32\tsdiscon.exe"")</onclick>
<onclick>System.Exec("C:\Windows\System32\tsdiscon.exe")</onclick>
<onclick>System.Exec(""D:\Program Files\tsdiscon.bat"")</onclick>
tsdiscon.bat contains
Code:
START "Switch User" "C:\Windows\System32\tsdiscon.exe"