Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43907

python : how to Opens folder with specified items selected on Windows

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <2281570025@qq.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'subject:Windows': 0.02; 'url:msdn': 0.07; 'python': 0.11; 'windows': 0.15; 'subject:folder': 0.16; 'url:85)': 0.16; 'url:windows': 0.16; 'subject:python': 0.16; 'folder': 0.16; 'looked': 0.18; 'fit': 0.20; 'example': 0.22; 'shell': 0.22; 'to:name:python- list@python.org': 0.22; 'subject: : ': 0.26; 'function': 0.29; 'specified': 0.30; 'anyone': 0.31; 'file': 0.32; 'another': 0.32; 'open': 0.33; 'subject:with': 0.35; 'requirement': 0.35; 'but': 0.35; 'activate': 0.36; 'url:microsoft': 0.37; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'url:en-us': 0.68; 'from:addr:qq.com': 0.84; 'message-id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84; 'opens': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1366386883; bh=MSy+6CM9khZqHJJL4LaBbsrPlBnfUIi8FWs5Ig1woWU=; h=X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN:X-Originating-IP: X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer:X-QQ-FName:X-QQ-LocalIP; b=a9Yd3WcTQeNKHYy1Cd4Sp459cboCT8OZW2fTBuRvyRUvSfggVppfrArVTov/T36dj zKnb5DeW8Y5TWGb7+Otue0ZK+Fpn8zrDtoCMz+DCsoIHo8WYXLlmF3uzFAg/1QD
X-QQ-SSF 00000000000000F000000000000000L
X-HAS-ATTACH no
X-QQ-BUSINESS-ORIGIN 2
X-Originating-IP 61.166.107.175
X-QQ-STYLE
X-QQ-mid webmail433t1366386880t5295572
From "iMath" <2281570025@qq.com>
To "python-list@python.org" <python-list@python.org>
Subject python : how to Opens folder with specified items selected on Windows
Mime-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_517168C0_D665A198_0F635FE3"
Content-Transfer-Encoding 8Bit
Date Fri, 19 Apr 2013 23:54:40 +0800
X-Priority 3
X-QQ-MIME TCMime 1.0 by Tencent
X-Mailer QQMail 2.x
X-QQ-Mailer QQMail 2.x
X-QQ-FName 917141C953A74A7580BAFB7F519E925C
X-QQ-LocalIP 163.177.66.155
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.825.1366386895.3114.python-list@python.org> (permalink)
Lines 59
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1366386895 news.xs4all.nl 2217 [2001:888:2000:d::a6]:35150
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43907

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

I want to Opens folder with specified items selected on Windows ,I looked up the The Windows Shell Reference found a function fit for this job 
 
SHOpenFolderAndSelectItems
 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762232(v=vs.85).aspx
 
but I cannot find an example on how to use it with python 
 
so anyone can give a little example ?
 
I have another extra requirement :if that folder already open ,don’t open it again ,just activate it and selected the file

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

python : how to Opens folder with specified items selected on Windows "iMath" <2281570025@qq.com> - 2013-04-19 23:54 +0800

csiph-web