Sign in to follow this  
Followers 0
the_lord_mephy

open directory?

11 posts in this topic

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]

Share this post


Link to post
Share on other sites



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}>

:ph34r: Open a Directory ?

What is your goal here ?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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)

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 ?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

how you do that! lol thx for the help

<{POST_SNAPBACK}>

Just a bit of practice and you'll see how easy it is.... :ph34r:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0