r1100r98 Posted March 20, 2006 Share Posted March 20, 2006 Greetings AutoIT Users, I want to start/execute a rdp file and need a little help with the syntax... File Location and Name: C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp Great program and Thanks for any help... Link to comment Share on other sites More sharing options...
CyberSlug Posted March 20, 2006 Share Posted March 20, 2006 (edited) ;one method Run("mstsc.exe " & """" & C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp & """") Edit: Fixed missing ampersand. Edited March 21, 2006 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
cdkid Posted March 20, 2006 Share Posted March 20, 2006 ;Another method Run(@Comspec & " /c start " & FileGetShortName('C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp')) AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
r1100r98 Posted March 23, 2006 Author Share Posted March 23, 2006 ;Another method Run(@Comspec & " /c start " & FileGetShortName('C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp')) Thanks, Good Stuff! Link to comment Share on other sites More sharing options...
r1100r98 Posted March 23, 2006 Author Share Posted March 23, 2006 ;one methodRun("mstsc.exe " & """" & C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp & """")Edit: Fixed missing ampersand.Thanks for the tip, but I could not get it working...AutoIT return a runtime error. Maybe the problem is with the """". I played with it a little and could not get it working.Anyway, the other method posted seemed to work okay so my script is up and going again. Link to comment Share on other sites More sharing options...
MHz Posted March 23, 2006 Share Posted March 23, 2006 Single quotes are easier to manage. Try this. Run('mstsc.exe "' & @MyDocumentsDir & '\Connect To HAL9000.rdp"') Link to comment Share on other sites More sharing options...
CyberSlug Posted March 23, 2006 Share Posted March 23, 2006 Ugh, I forgot the quotes around the path itself: Run("mstsc.exe " & """" & "C:\Documents and Settings\Me\My Documents\Connect To HAL9000.rdp" & """") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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