Is it correct to assume that executable files do not show an "Open-With" submenu in the Windows right-click File Explorer context menu?
Is there a Winapi function to detect whether a file is an EXECUTABLE FILE?
(I need to detect this to get the information on whether a file can show an "Open-With" submenu in the Windows right-click File Explorer context menu).
The fact that executable files do not show an "Open-With" submenu does not mean that files do not show an "Open-With" submenu are executable files.
If you want to detect whether a file is an EXECUTABLE FILE. I suggest you could try to use GetBinaryTypeA function
Related
How can I open the containing folder of an open file in Sublime Text 3 in OSX? Prefer an answer that shows me where the menu option is, rather than setting up a command-line.
Some other posts I've searched suggest right-clicking the file and selecting the Open Containing Folder option, but I don't see it on mine...
What you read is correct, but you may be falling afoul of the fact that the context menu that you get when you right click on the file tab is different than the one that you get if you right click in the file itself and, counter-intuitively, the option for opening the containing folder (or copying the path of the file to the clipboard) only appears in the file context menu.
The option you want is Reveal in Finder, which is near the bottom of the menu (note that my menu may be slightly different than yours depending on installed packages):
How to change the default icon of my Processing appIconTest.exe exported
application in windows ?
The default one :
After some research, the easiest solution i could find is :
Go into ...\processing-3.0.1-windows64\processing-3.0.1\modes\java\application
Save sketch.ico somewhere you can find (renaming it will help).
Place the icon you want to use in the same folder with the same name sketch.ico (which you might create using GIMP).
Now you can export your application from Processing.
Important : Be sure to save the default icon, because every application you export (after changing the icon) using Processing, will have this new icon.
You can change the icon of your running application (the icon that shows up in the title bar of the window and the task bar), but I don't think that's what you're asking about. You can't easily change the icon of the file itself.
That icon seems to be coming from the core.jar Processing library file, so if you want to hack at it, you could try replacing that file in the jar. I really don't recommend that though.
Because the .exe file that Processing exports isn't really an executable anyway- it's really just a shell that calls the code in the lib directory. (source)
If you want to create a real .exe file and have control over its icon, you should look into using a .exe generator like JSmooth or launch4j or JWrapper.
I would recommend Resource Hacker to change the icon of your programs.
Install Resource Hacker (latest build).
Go to your executable file.
Open it with Resource Hacker (right mouseclick, and there should be an option to do that or else you could just click open with).
It will open and show some directories, also one called "Icon", open that one, and right click one one of the icon files (stars with some numbers after that), there will be an option: "replace icon ... Ctrl + R", click that one and replace your icon.
I need to change .exe icon for a VB6 project. I tried using the option generate .exe by selecting the form which loads first but this doesn't work as the previous exe icon comes from a resource file. I also tried adding the icon to the resource file, but VB 6 doesn't allow to add icons of more than 256 colours. Can anyone please help me on this?
Create a file named YOURAPP.RC containing the line
AAA ICON MOVEABLE PRELOAD YOURICON.ico
in the directory with the YOURICON.ico icon.
Then, compile to a resource file:
RC.EXE /v /r /fo YOURAPP.RES YOURAPP.RC
(C:\Program Files (x86)\Microsoft Visual Studio\VB98\Wizards\RC.EXE)
Finally, add the resulting YOURAPP.RES as a Resource to the VB6 project and recompile it.
Click on the Form your are working with then find the "Icon" entry in the properties page.
Then, go to project properties and in the second tab your icon will be set to your startup form's icon or whatever you choose.
I show a bunch of exe files in a listview, and I want to show their default icon, but if the exe file has no icon resource, I would like to show the Windows default application icon regardless of the OS version. If I check the registries at:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\DefaultIcon]
the default value is "%1", which is the first icon in the exe file itself. But where is the default .exe icon for exe files with no icon?
This is what XP does (this is actually a shortcut, but you get the point)
It's been awhile; but doesn't shell32 handle this?
Here's an older article from stackoverflow
I have a program called BulkFileChanger, and when I add files - it opens Windows dialog where I can select files. Now that is common windows dialog and I can select all files ( ctr+a) and it selects all files + all subdirecotires, but when you click OPEN it just imports files, not the files contained in subdirecotires, so is there a way to actually open all files + all files in all subdirectories in normal windows open files dialog ? I am also using some other programs that can open "bulk" files, but strange thing is that none of them (who uses normal windows open files dialog) can actaully open subfolders.... is there some kind of shortcut in Windows that will allow this feature ?
The file dialog will not do this for you. There is no setting that will make it recurse into sub-folders and return all files contained within. If you want that functionality you must implement it yourself.