Link to home
Start Free TrialLog in
Avatar of mohit_rao
mohit_rao

asked on

Execute a custom file on double click of it's icon

Hello all
  i have written a Vb program which creates a custom file(say hello.xyz) and also I have an application to execute this  file.
  Now in Internet explorer or windows explorer I am not able to execute the file on double click of it's icon.
  I have set the folder options in windows explorer
 Now presently ,if i double click on the icon,it will load the application and then   i have to open the file from the menu of my application and select the path and then execute .
  Please do help me
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

You have to work in you application code to take the command line (ie the path of the file) into account to load that file. Did you do that already? (the function Command$ returns the command line parameters...)
How have you setup the folder options: did you say in the open method to use <apppath>\<yourapp>.exe "%1", so that the file clicked will be passed as command line parameter to the application?

CHeers
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Any progress?
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
https://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
Avatar of Netminder
Netminder