Jerry_Durden Posted February 29, 2016 Share Posted February 29, 2016 I'm hoping that someone can help me with my problem. I know it's probably a simple fix--for someone who knows how to write scripts. I have a batch file that runs upon startup (windows 8.1). It launched an RDP session. The problem is that once the RDP session has ended, the user gets a popup window stating "Your Remote Desktop Services session has ended. My batch file gets stuck because it's waiting for the patron to hit the enter key. Is there a simple way to launch rdp and when the rdp session terminates to reboot the PC after waiting 25 seconds? Any help would be appreciated. This is my current batch file: Start /wait "C:\ " Default.rdp Shutdown -r -f -t 25 Thank you! Jerry Durden Link to comment Share on other sites More sharing options...
EmilyLove Posted March 1, 2016 Share Posted March 1, 2016 Welcome to the forums. Here are some resources to get you started. https://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm https://www.autoitscript.com/autoit3/docs/keywords.htm https://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm https://www.autoitscript.com/autoit3/docs/functions/WinWait.htm https://www.autoitscript.com/autoit3/docs/functions/WinClose.htm https://www.autoitscript.com/autoit3/docs/functions/Shutdown.htm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now