Solved

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

Posted on 2002-06-04
6
187 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 65
MS Access Search and Replace Using VBA 6 85
Access Object Property from VBA Module in Excel 2010 2 37
Export Data to Different .csv Files 26 115
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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…

827 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