Sign in to follow this  
Followers 0
sum1

Navigating within a folder

7 posts in this topic

I have a variable $filename which is given by the user via a input box. I then open explorer to my desired path But am unsure how i would go about navigating to the file (highlight) in a efficient way.

Any ideas or examples would be great.

Thanks

Share this post


Link to post
Share on other sites



I have a variable $filename which is given by the user via a input box. I then open explorer to my desired path But am unsure how i would go about navigating to the file (highlight) in a efficient way.

Any ideas or examples would be great.

Thanks

Try this and see if thats what you want ...

Run('c:\windows\explorer.exe /e,/select,"' & $filename & '"')

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

I have a variable $filename which is given by the user via a input box. I then open explorer to my desired path But am unsure how i would go about navigating to the file (highlight) in a efficient way.

what are you going to do with the file? Do you really need explorer for that?

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I was going to perform a rightclick operation on the file

Share this post


Link to post
Share on other sites

I was going to perform a rightclick operation on the file

and then do what.... ???


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

well the program i am writing performs a few things to the user inputed file which are all accessable via alt+f in explorer. One of the programs can be controlled similar to

Run('c:\windows\explorer.exe /e,/select,"' & $filename & '"')

but the other cannot so i decided to do it this way

once in the program some other information gathered from the user is given to the program like file path etc.

i'm sure what i'm doing is far from the best way but i am new to autoit and think this will complete my overall goal the quick and dirty way so to speak but ideas are always welcome :whistle:

Edited by sum1

Share this post


Link to post
Share on other sites

well the program i am writing performs a few things to the user inputed file which are all accessable via alt+f in explorer. One of the programs can be controlled similar to

Run('c:\windows\explorer.exe /e,/select,"' & $filename & '"')

but the other cannot so i decided to do it this way

once in the program some other information gathered from the user is given to the program like file path etc.

i'm sure what i'm doing is far from the best way but i am new to autoit and think this will complete my overall goal the quick and dirty way so to speak but ideas are always welcome :whistle:

hmm. I still don't understand what you want to do.... If you are interested in ideas, you should tell us more ...


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

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