Hey all,
I'm putting together a method to switch users on a kiosk app and am trying to use this code...
Code:
Const fName = "C:\Windows\System32\tsdiscon.exe"
Process.Start(fName)
When I run that, I get a Win32Exception on the call to Process.Start saying the file cannot be found. If however I copy and paste the file name into a cmd prompt it runs fine. Just for giggles, I tried using Shell, but get similar results.

So if the file is there why is it not there?
Can anyone reproduce it or is it just me?
Maybe a security setting on my machine?

I've tried starting VS2013 with admin rights but it makes no difference.



Please note that if you are going to try this code, you will (should) be disconnected and shown the switch user screen from which you can log right back in.