🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #12203

Re: How to open a explorer to locate a known file ?

#12203
From: Joe McRay
Date: Fri, 15 Nov 2002 15:58
18 lines
1474 bytes
Hi Sowen!

> I have known a file with full name, like c:\windows\1.txt , I need to
> execute a file explorer, which open c:\windows folder and select the 1.txt
> file. How to realize it?

explorer.exe has an undocumented (i think) command-line-switch:

explorer.exe /select,<fileOrDirName>
e.g.

explorer.exe /select,C:\
explorer.exe /select,C:\WINNT\
explorer.exe /select,C:\boot.ini


Hope that helps,
Joe McRay
Technical Details
Message-ID: <3dd51c43@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail
References: <3dd4a6f5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,174bf1c86f5089ae
X-Google-Attributes: gidf94dd,public
X-Google-Thread: f8e31,174bf1c86f5089ae
X-Google-Attributes: gidf8e31,public
X-Google-ArrivalTime: 2002-11-15 08:26:06 PST
From: "Joe McRay" <joe.mcray@gmx.net>
Newsgroups: borland.public.delphi.nativeapi,borland.public.delphi.students
References: <3dd4a6f5@newsgroups.borland.com>
Subject: Re: How to open a explorer to locate a known file ?
Date: Fri, 15 Nov 2002 16:58:30 +0100
Lines: 20
Organization: JMP
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 193.170.222.165
Message-ID: <3dd51c43@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1037376579 193.170.222.165 (15 Nov 2002 08:09:39 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail