473,231 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

"Show this file in explorer"

I have a big problem. I have a list of files that my script find and
list them in a little gui.
I need this function:

when i d-click on each item, I want explorer opens and selects that
item inside windows explorer.
like that beautiful buttom in iTunes.

Thanks in advane.

Farshid Ashouri.
Dec 1 '07 #1
7 2356
Although I'm a python fan; for that kind of stuff, I use autohotkey (
http://www.autohotkey.com/download/ )

Best,
Sergio

On Dec 1, 2007 3:30 AM, farsheed <ro*********@gmail.comwrote:
I have a big problem. I have a list of files that my script find and
list them in a little gui.
I need this function:

when i d-click on each item, I want explorer opens and selects that
item inside windows explorer.
like that beautiful buttom in iTunes.

Thanks in advane.

Farshid Ashouri.
--
http://mail.python.org/mailman/listinfo/python-list
Dec 1 '07 #2
farsheed wrote:
I have a big problem. I have a list of files that my script find and
list them in a little gui.
I need this function:

when i d-click on each item, I want explorer opens and selects that
item inside windows explorer.
like that beautiful buttom in iTunes.
Experiment with:

explorer.exe /select,<path-to-file>
TJG
Dec 1 '07 #3
That was great. Thanks so sooooooooooooooooooooooooooooooooo much.
can you tell me where can I find that kind of trips?
Thanks Again.
Dec 1 '07 #4
farsheed wrote:
That was great. Thanks so sooooooooooooooooooooooooooooooooo much.
can you tell me where can I find that kind of trips?
(assuming "kind of tips")

I stuck "explorer command line options" into Google and... Bingo!
(All right, I'm cheating a bit: I knew that explorer *had* command
line options because I've been around a bit).

http://support.microsoft.com/kb/152457

TJG
Dec 1 '07 #5
But now I have a more technical question. when I run this command, I
saw that the windows explorer did not refresh,example: I have two
files in a folder and i use that command to select them from command
line, the first one will be selected, but after running the command
for second file, the second remains unselected. So I need to close the
explorer and run the command again for the second file. this is
different from the way iTunes do it.
Any Idea?
TIA.
Farsheed.
Dec 1 '07 #6
On Dec 1, 2:58 pm, farsheed <rodmena....@gmail.comwrote:
But now I have a more technical question. when I run this command, I
saw that the windows explorer did not refresh,example: I have two
files in a folder and i use that command to select them from command
line, the first one will be selected, but after running the command
for second file, the second remains unselected. So I need to close the
explorer and run the command again for the second file. this is
different from the way iTunes do it.
Any Idea?
TIA.
Farsheed.
I think you want some sort of OLE automation. Perhaps this will
help...

http://farm.tucows.com/blog/_archive...23/189572.html

Regards,
Jordan
Dec 1 '07 #7
You are my hero man, Thanks a lot.
Dec 2 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: MAK | last post by:
I'm stumped. I'm trying to use Python 2.3's urllib2.urlopen() to open an HTML file on the local harddrive of my WinXP box. If I were to use, say, Netscape to open this file, I'd specify it as...
1
by: eddie wang | last post by:
I have the following Javascript. function show(d){ if(obj=document.all(d)) obj.style.display="" } The html then callsd 'show("div6"). But, what is ("div6") and where it is defined? I know...
1
by: Jesper Hermansen | last post by:
Hi! I'm making a system that will generate Winamp-playlists. To make it easy for the user to add a file to the list, I'm using <input type="file">. The problem with this is that I only get...
10
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This...
2
by: news.bellatlantic.net | last post by:
I created a for with file inputs (<input type=file.../>) I named them file1, file2, file3 etc. How do I access them in the code behind without actually calling each one by name (there are 21 of...
0
by: jeffrey.bigham | last post by:
Hello, I'm developing a small application that uses the WebBrowser control to display a webpage. I'd like to programatically access the "Show Pictures" option to turn images on and off. ...
1
by: acmdo | last post by:
Hello, The following question is about the name of file, with commas and periods, using VB.net 2005 when I try to use the process.start instruction I can open a file in explorer with...
2
rodmena
by: rodmena | last post by:
I have a big problem. I have a list of files that my script find and list them in a little gui. I need this function: when i d-click on each item, I want explorer opens and selects that item...
0
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, well i had no need for it until today, so how can i bring up the "Backup and Restore" Dialog in Vista? In W2K and XP its still ntbackup.exe but with vista it changed to something like a...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.