473,591 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding the selected file in Windows Explorer

Hi!
I need to find the selected file(s) in a Windows Explorer window from
another program (I'd look at the window that last had focus). I found
something in the following page that should do the trick:

http://blogs.msdn.com/oldnewthing/ar...20/188696.aspx

However, it is not Python and, while I'm a competent Python
programmer, Win32, COM and the like are somewhat outside my
competences.

Does any one know how to do something similar in Python?
Tks!
Domiriel
Jun 27 '08 #1
2 2054
On Apr 21, 9:44 am, domir...@gmail. com wrote:
Hi!

I need to find the selected file(s) in a Windows Explorer window from
another program (I'd look at the window that last had focus). I found
something in the following page that should do the trick:

http://blogs.msdn.com/oldnewthing/ar...20/188696.aspx

However, it is not Python and, while I'm a competent Python
programmer, Win32, COM and the like are somewhat outside my
competences.

Does any one know how to do something similar in Python?

Tks!
Domiriel
I think the guys on the PyWin32 mailing list were just talking about
something similar earlier this month. Looks like it was how to select
a file in Explorer. You can check out that thread here:

http://www.mail-archive.com/py******.../maillist.html

Or just join their mailing list and re-post your question there:

http://mail.python.org/mailman/listinfo/python-win32

They're quite nice and very knowledgeable.

Mike
Jun 27 '08 #2
Will do! Tks!

Domiriel
On Apr 21, 4:12 pm, Mike Driscoll <kyoso...@gmail .comwrote:
On Apr 21, 9:44 am, domir...@gmail. com wrote:
Hi!
I need to find the selected file(s) in a Windows Explorer window from
another program (I'd look at the window that last had focus). I found
something in the following page that should do the trick:
http://blogs.msdn.com/oldnewthing/ar...20/188696.aspx
However, it is not Python and, while I'm a competent Python
programmer, Win32, COM and the like are somewhat outside my
competences.
Does any one know how to do something similar in Python?
Tks!
Domiriel

I think the guys on the PyWin32 mailing list were just talking about
something similar earlier this month. Looks like it was how to select
a file in Explorer. You can check out that thread here:

http://www.mail-archive.com/python-w.../maillist.html

Or just join their mailing list and re-post your question there:

http://mail.python.org/mailman/listinfo/python-win32

They're quite nice and very knowledgeable.

Mike
Jun 27 '08 #3

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

Similar topics

1
6486
by: Phil Watkins | last post by:
I am a novice programer in Vb and I am having a major brain ache finding out which item has been selected within a list view and then either deleting that item or editing them. My searching so far seems to indicate the use of the "contains" command but I cannot find a helpfull reference. Any help greatly apreciated as I am workin on the second bottle of nurophen
22
2664
by: Tony Houghton | last post by:
I'm using pygame to write a game called Bombz which needs to save some data in a directory associated with it. In Unix/Linux I'd probably use "~/.bombz", in Windows something like "C:\Documents And Settings\<user>\Applicacation Data\Bombz". There are plenty of messages in the archives for this group about how to find the correct location in Windows, but what about Mac OS? There I don't know the correct location for this sort of thing at...
9
10880
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent the wheel, right? Everything so far is working well with the Active Directory. The problem I am having is with adding File Permissions to a directory. I am currently using some code courtesy of "Willy Denoyette "
3
2935
by: Patrick | last post by:
Hi All, Why does this work in Internet Explorer, but not Mozilla? I'm reading from a flat file. As an examle the value of colm1 read from the file is B. I set in the form page; <?php $A = 'A'; $B = 'B' ; $C = 'C'; ?>
4
2167
by: tshad | last post by:
At work we are setting up a new web site and had a problem with running a page when using URL: \\phoenix\cdrive\inetpub\wwwroot\hrworkshop\index.aspx It would start up notepad to edit the file. When I went to IIS and changed the default file to index.aspx, this made it work fine.
0
1590
by: Johnny Jörgensen | last post by:
In an add-in I'm doing, I need to get the full filename of the file(s) selected by the Visual Studio 2005 user at a given time. Using: Dim win As Window = _applicationObject.ActiveWindow Dim uih As UIHierarchy = Nothing Dim uihItem As UIHierarchyItem = Nothing
4
4204
by: Karl | last post by:
Hi all, I want to write an application that is launched from the context menu in Windows Explorer/Computer. That is to say, when I am browsing around my hard drive and get to any location I choose, I want to be able to select several files, right click my mouse and launch an application which will act on the selected files. However, I don't even know where to start and have a number of questions!
0
1939
by: Shafiq | last post by:
Hi All, Based on the sample kbbar.net applicaation i have created a tool bar for windows explorer. Now i have to enable and disable few buttons based the user slects file in the explorer. For to sync this i have set-up the connection point as in the following function. I could able to get the events only when the user double cliks a folder in the explorer treview or list view. If the user slect an item by single click no notification...
0
951
by: Tom Rahav | last post by:
Hi, I develop a win-form application using VB.NET that uses a keyboard hook to monitor when if the user types SHIFT+Z combination. What I would like to do is to display a form when the user clicks this keys combination, but only if the focus is on a file/s in the Windows Explorer. What I mean is that I when the user select a file/s in the Windows Explorer and type the keys combination (while the selected file/s are in focus), then the new...
0
7870
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8236
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8362
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8225
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5400
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3850
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.