-
Does anybody know how to make it so, when u click on a file an option will be there to scan it.. with your program? Is there something u need to add into the Windows Registry to do that, or some kind of ini file? I have absolutly no clue how to approach this.
Anybody know? Please help
Thank you in advance!
-
Yes, there is a certian Root where you add it. I will go look for it and get back to you when I find it.
-
Try this root
CLSID\Directory\shell\MyKey
In the key MyKey there shuld be a data called (default) and you should set the value of it to whatever you want it to say...
I'm not really sure if it'll work on your computer...I'm also not sure how it all works, but try it. I have to go right now, but tomorrow, i'll see if i can get it to trigger your App.
-
I will live forever or die traying.
Little typo I do believe >>>>>>
Should be:
I will live forever or die trying.
-
I'm not sure what you guys were talking about but HeSaidJoe, do you mean rightclick in explorer, as a FileType, Then in the menu you click open with your app?
-
Yes, when you right click on a explorer item...
u know how when u install winzip.. when u right click on an item in explorer it will give u an option to zip it.
Im traying to recreate the same effect except scan the selected file.
And yes, u are correct with the typo. Im gonna go change that right now.
-
There's a recent thread called filetypes, go search for it :)
-
I havefound it but it dosen't tell me anything. I dont even know how to add an item (without any submenus).
All i want is to shell it to my program, and somehow get the file or files that i need to scan.
Whenever i was looking at the registry settings some of them had {18723490817-} ect. in it. I dont know even know how to approach that. Is that hex or something?!?!
-
In the HKEY_CLASSES_ROOT Hive of the Registry, locate you Extensions Application Name Entry, then Add the items you want to appear on the Context Menu to the "Shell" Key, add a "Command" Key to each item you add in which you store the EXE path and name in the {Default} value, i.e.
Code:
HKEY_CLASSES_ROOT
Some.Application
Shell
Open
Command - (Default) = "C:\SomeApplication.exe %1"
Scan
Command - {Default} = "C:\ScanApp.exe %1"
In this exampe any file with an Extension that reference's the "Some.Application" key will have "Open" and "Scan" on it's context menu.
- Aaron.
-
Thanks that works prefectly. But, whenever i select more then 1 file, it opens more then 1 of my progams. Is there any way to make it send the parameters to my program in one single string?
eg. So it wont execute
open my.prog /Fileselected
open my.prog /fileselected
open my.prog /Fileselected
But instead it will do this
open my.prog /Fileselected1 /Fileselected2 /Fileselected3
Any ideas?