the_lord_mephy Posted September 7, 2004 Share Posted September 7, 2004 hi, i might not have been able to see it but i checked like everywhere in AutoIt Help. Is there a way to open a directory? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 7, 2004 Developers Share Posted September 7, 2004 hi, i might not have been able to see it but i checked like everywhere in AutoIt Help. Is there a way to open a directory? <{POST_SNAPBACK}> Open a Directory ? What is your goal here ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 7, 2004 Author Share Posted September 7, 2004 Just to open the directory so u can see all of the files that are in it. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 7, 2004 Developers Share Posted September 7, 2004 Just to open the directory so u can see all of the files that are in it. <{POST_SNAPBACK}>mmmh.. you mean start explorer at a specified directory like this ? $StartDir = "c:\windows" Run("Explorer " & $StartDir) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 7, 2004 Author Share Posted September 7, 2004 is there a way you can just start it w/o using internet explorer? My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 7, 2004 Developers Share Posted September 7, 2004 is there a way you can just start it w/o using internet explorer? <{POST_SNAPBACK}>Iam using Windows Explorer in this example. You are asking to start it... what do you mean ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 7, 2004 Author Share Posted September 7, 2004 whoops sry i didnt see what u were saying, but i just tried it and now nothing happens, would i do something like this? $dir = C:\Program Files\NewDir1 DirCreate($dir) MsgBox(0, "Directory Created", "Directory: " &$dir& " created.") $goto = MsgBox(4, "Directory Created", "Go there now?") If $goto = 4 Then Run("Explorer " & $dir) EndIf If $goto = 7 Then Exit EndIf My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 7, 2004 Developers Share Posted September 7, 2004 whoops sry i didnt see what u were saying, but i just tried it and now nothing happens, would i do something like this? <{POST_SNAPBACK}>No problem...Have a look at this version and see if that works for you: - $dir = "C:\Program Files\NewDir1" if NOT FileExists($dir) then DirCreate($dir) MsgBox(0, "Directory Created", "Directory: " &$dir& " created.") EndIf $goto = MsgBox(4, "Directory Created", "Go there now?") If $goto = 6 Then ; Yes clicked Run("Explorer " & $dir) EndIf SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 7, 2004 Author Share Posted September 7, 2004 how you do that! lol thx for the help My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Developers Jos Posted September 7, 2004 Developers Share Posted September 7, 2004 how you do that! lol thx for the help <{POST_SNAPBACK}>Just a bit of practice and you'll see how easy it is.... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
the_lord_mephy Posted September 7, 2004 Author Share Posted September 7, 2004 ok now im trying to make it so the person who runs it can specefy a directory. but i cant get it to quit if they click the cancel button. this is what i have so far $dir = InputBox("Enter Directory Name", "Please enter a directory. If it does not exist it will be created", "C:\") If $dir = @error 1 Then Exit EndIf If FileExists($dir) Then MsgBox(0, "Directory Existed", "Directory: " &$dir& " was found.") EndIf If NOT FileExists($dir) then DirCreate($dir) MsgBox(0, "Directory Created", "Directory: " &$dir& " created.") EndIf $goto = MsgBox(4, "Go there?", "Would you like to go there now?") If $goto = 6 Then Run("Explorer " & $dir) EndIf My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] 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