title: Windows Batch File for Login Shortcut
body: <p>I know you can use tsdiscon.exe and tscon.exe to connect to a user account via the command line.</p>
  
  <p>I want to write a simple batch file to accomplish this, so I can have a shortcut on my desktop that will quickly and easily login to another user account on this system.</p>
  
  <p>I share this computer with my in-laws, and they are not very computer literate. Currently there are many steps in switching to their account, and I want to make it more streamlined for them.</p>
  
  <p>It's been awhile since I've written a batch file, but I am sure there is a way to run a simple IF/THEN statement, that would check to see if the user is logged in, then either log them in with the given credentials, or switch to that users profile. </p>
  
  <p>I want to know the syntax to make this happen, so I can put the .bat file on the desktop for them to click on. </p>
  
  <p>Is this possible?</p>