contextmenu when 2 files are selected
-
Hi, i want to create an option when I click right on 2 files. I added the regkey in HKCU\Software\Classes\*\shell and command. but when I select my option it is executed twice. Once on file 1 and once on file 2. I want to run the command on the 2 files at once so that I can check that there are exactly 2 files selected as a parameter and than I can do my stuff with those files. How can I make windows run my command on the 2 files in 1 instance of my command? Jan
-
Hi, i want to create an option when I click right on 2 files. I added the regkey in HKCU\Software\Classes\*\shell and command. but when I select my option it is executed twice. Once on file 1 and once on file 2. I want to run the command on the 2 files at once so that I can check that there are exactly 2 files selected as a parameter and than I can do my stuff with those files. How can I make windows run my command on the 2 files in 1 instance of my command? Jan
It will now launch two instances, right? There's some articles here on preventing a second instance of your app, and how to send the starting-params to the first instance of the application, before exiting. That way the first instance of the app could receive the params for the second instance and do it's work, while the second instance exits.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
It will now launch two instances, right? There's some articles here on preventing a second instance of your app, and how to send the starting-params to the first instance of the application, before exiting. That way the first instance of the app could receive the params for the second instance and do it's work, while the second instance exits.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.