Re: Open with... Problems



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 "Open
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!
Assuming you have got your associations set up correctly in the registry,
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.

.



Relevant Pages

  • Re: Ms Scanner @ Camera Wizard - What is it ?
    ... Type into the Run command and see what opens: ... You can open almost anything with the Run command. ... You can open a file or folder or connect to a shared computer by typing ... Right click Shared Documents and click Properties. ...
    (microsoft.public.windowsxp.general)
  • Re: very slow cursor in CMD window w/Text editor?
    ... I have that shortcut on my Start Menu. ... hh ntcmds.chm::/ntcmds.htm in the Run command will open right to the page. ... also opens Network Connections. ... Any *.chm file can be opened by double clicking. ...
    (microsoft.public.windowsxp.general)
  • Supershell (Windows XP, VB)
    ... ctrl+windows and type the command. ... :> google pda technology (Will do the obvious, ... :> /database/library (opens the specified folder underneath the ...
    (comp.programming)
  • Supershell (Windows XP, VB)
    ... ctrl+windows and type the command. ... :> google pda technology (Will do the obvious, ... :> /database/library (opens the specified folder underneath the ...
    (microsoft.public.vb.general.discussion)
  • Re: The command button on my forms doesnt work, any clues why?
    ... "Subform" is a special term in Access, referring to a form that is within another form. ... When you open the main form, the subform opens in it. ... Pase the code the wizard created for you for the Click event procedure of your command button. ... my primary form to a detail form. ...
    (microsoft.public.access.forms)