Solved

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

Posted on 2002-06-04
6
188 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:mohit_rao
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 7053301
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
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7053582
to create the association, have a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q185453
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7053745
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7128822
Any progress?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7297403
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:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7373239
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question