Re: Open with... Problems
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Tue, 22 Aug 2006 21:51:59 -0400
This might help -- with it you can add an option to allow the user to
associate or re-associate your app with the particular file extension.
http://vbnet.mvps.org/code/reg/association.htm
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
Please reply to the newsgroups so all can participate.
<dwenger.3@xxxxxxxxxx> wrote in message
news:1156254324.401283.146840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply Richard, but I am confussed about "associations
set up correctly in the registry".
I have used the "Open with..." dialog box to open my particular text
file extension to my executable. Also, can the below command (FileName
= command$) be used when running the vb from the script or does it only
work for the executable?
Thanks again!!
Richard Cole wrote:
On 21 Aug 2006 07:11:56 -0700, dwenger.3@xxxxxxxxxx wrote:
I am having difficulty finding the selected file using the "OpenAssuming you have got your associations set up correctly in the registry,
with.." dialog box.
I have a vb executable which opens text files to load the form. I
would like for the user to be able to double click these text files and
them open the executable and load that particular text file. I can
start the executable, but cannot capture the file which the user has
double clicked.
Thanks!
the double-clicked file will be passed as a command line parameter, so you
can use:
FileName = command$
Richard
Web pages: http://www.caravanningnow.co.uk/ - caravanning,
http://www.rcole.org/ - personal web site and
http://www.homeindorset.co.uk
because I loves the domain name for email.
--
'And, er, what are you, Miss Susan?' 'Me? I'm . . . a schoolteacher.' She
followed his gaze to the wrench that she still held in her hand, and
shrugged.
'It can get pretty rough at break time, can it?' said Lobsang. - The
Thief of
Time by Terry Pratchett.
.
- References:
- Open with... Problems
- From: dwenger . 3
- Re: Open with... Problems
- From: dwenger . 3
- Open with... Problems
- Prev by Date: Re: Modules
- Next by Date: Re: Modules
- Previous by thread: Re: Open with... Problems
- Next by thread: can I use a old dll file (in VB 3.0) in a vb.net program?
- Index(es):
Relevant Pages
|