Bilbo Posted January 28, 2006 Share Posted January 28, 2006 Sorry if this is old hat; I'm new to AutoIt and haven't found this in help or on the forum... maybe I'm using the wrong search terms, or maybe I'm just not holding my mouth right. I can open notepad with Run("notepad.exe"), I thought maybe the usage of Run was similar to the Start/Run function from the windows task bar, and I could open a folder in a similar way, e.g., Run("c:\documents and settings\bilbo"), but obviously that isn't the answer. Can somebody point me toward what I'm missing? TIA Bilbo Link to comment Share on other sites More sharing options...
BigDod Posted January 28, 2006 Share Posted January 28, 2006 I am not sure what you are hoping to achieve but if it is to open a folder to look at the contents you could use FileOpenDialog. If I am mistaken in my guess then I am sorry but you will need to provide a better explanation. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
greenmachine Posted January 28, 2006 Share Posted January 28, 2006 Run ('explorer.exe ' & $FolderName) You supply folder name. Link to comment Share on other sites More sharing options...
Bilbo Posted January 28, 2006 Author Share Posted January 28, 2006 I am not sure what you are hoping to achieve but if it is to open a folder to look at the contents you could use FileOpenDialog. If I am mistaken in my guess then I am sorry but you will need to provide a better explanation.I thought what I was trying to achieve was pretty straightforward--the identical result to selecting Start/Run and typing in, e.g., c:\ in the run box. Not sure how else I could have made it clearer. I suspect your actual question is more like "not sure why you would want to do such a thing." I haven't tried the FileOpenDialog, yet, but I will. Thanks very much for the response, BigDod.Bilbo Link to comment Share on other sites More sharing options...
Bilbo Posted January 28, 2006 Author Share Posted January 28, 2006 Run ('explorer.exe ' & $FolderName)You supply folder name.Thanks very much, GreenMachine. This works perfectly. I was stuck in the mindset that there must be some built-in in AutoIt, similar to Run, that would do this.Bilbo 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