How to run your application by double-clicking a file?
-
Please help.., how do i load a file in the application i made upon double-clicking on the file itself? I need this without going through setup and deployment actions...Please anyone? ............
Lyfkcd wrote:
how do i load a file in the application i made upon double-clicking on the file itself
Try looking here http://www.codeproject.com/csharp/dateparser.asp[^]
Lyfkcd wrote:
I need this without going through setup and deployment actions
I have no idea what you mean by this.
only two letters away from being an asset
-
Please help.., how do i load a file in the application i made upon double-clicking on the file itself? I need this without going through setup and deployment actions...Please anyone? ............
-
OP: "upon double-clicking on the file itself" I don't think "Right-click the file, Open With -> Choose Program..." qualifies.
only two letters away from being an asset
-
Please help.., how do i load a file in the application i made upon double-clicking on the file itself? I need this without going through setup and deployment actions...Please anyone? ............
- Open up regedit
- Goto HKEY_CLASSES_ROOT
- Create (or modify) the default value of the key which is
.ext
where ext is the extension to point to another keyname e.g.extfile
- Create a key under HKEY_CLASSES_ROOT called
extfile
- Create a subkey called
Shell
- Create a subkey called
Open
- Change the default value to point to your program with
%1
being passed as an argument, %1 will be replaced by the shell with the name of the file you clicked
Hope I got that right from the top of my head :rolleyes:
I have no idea what I just said. But my intentions were sincere.
-
OP: "upon double-clicking on the file itself" I don't think "Right-click the file, Open With -> Choose Program..." qualifies.
only two letters away from being an asset
Its the pre-qualifier to "upon double-clicking on the file itself" and satisfies the "without going through setup and deployment actions" requirement. 1) Right-click the file, Open With -> Choose Program... 2) Browse for your program. 3) Check the "Always use the selected program..." and click OK The Shell Open registry entries are then done for you without using RegEdit.
Jon Humphreys ActivePlanet Software
-
- Open up regedit
- Goto HKEY_CLASSES_ROOT
- Create (or modify) the default value of the key which is
.ext
where ext is the extension to point to another keyname e.g.extfile
- Create a key under HKEY_CLASSES_ROOT called
extfile
- Create a subkey called
Shell
- Create a subkey called
Open
- Change the default value to point to your program with
%1
being passed as an argument, %1 will be replaced by the shell with the name of the file you clicked
Hope I got that right from the top of my head :rolleyes:
I have no idea what I just said. But my intentions were sincere.
Sure. Now have the EXE itself check, and if first time, modify the registry to programmatically execute those steps. It is not difficult at all. Now the user simply has to double click the EXE once, after that he can double click either the EXE or one of the application's data files. :)
Luc Pattyn
-
- Open up regedit
- Goto HKEY_CLASSES_ROOT
- Create (or modify) the default value of the key which is
.ext
where ext is the extension to point to another keyname e.g.extfile
- Create a key under HKEY_CLASSES_ROOT called
extfile
- Create a subkey called
Shell
- Create a subkey called
Open
- Change the default value to point to your program with
%1
being passed as an argument, %1 will be replaced by the shell with the name of the file you clicked
Hope I got that right from the top of my head :rolleyes:
I have no idea what I just said. But my intentions were sincere.
-
Not a problem, it's nice to be thanked once in a while, so thanks for the thanks.
I have no idea what I just said. But my intentions were sincere.
-
Its the pre-qualifier to "upon double-clicking on the file itself" and satisfies the "without going through setup and deployment actions" requirement. 1) Right-click the file, Open With -> Choose Program... 2) Browse for your program. 3) Check the "Always use the selected program..." and click OK The Shell Open registry entries are then done for you without using RegEdit.
Jon Humphreys ActivePlanet Software
Im sorry if i didnt quite say it.., i was wondering if how my c# application would output a file..but can in turn activate my application through clicking the file itself. Registered maybe in windows registry...having default file types, icons, etc. Thanks anyway...
-
Lyfkcd wrote:
how do i load a file in the application i made upon double-clicking on the file itself
Try looking here http://www.codeproject.com/csharp/dateparser.asp[^]
Lyfkcd wrote:
I need this without going through setup and deployment actions
I have no idea what you mean by this.
only two letters away from being an asset
Sorry for not describing my prblem well, im just new in programming. anyway, i meant modifying the registry.., didnt had the idea before, so i wasnt able to explain it very well. I meant, the file having default icons, file type, opens my own application through clicking the file itself...etc. Thanks 4 your help...