IExpress - create exe with custom icon - icons

With the help of IExpress I created an exe from a bat file and would like to set a custom icon for the exe. Is this possible?
Regards

Try Resource Hacker. It worked here with a test IExpress installer.
Step-by-step instructions:
Create your IExpress package as normal.
Launch Resource Hacker, then open your IExpress-generated executable.
In the Action menu, choose Replace Icon …
Open the file that contains the icon you want to use, then click Replace.
Save the file in Resource Hacker. This will get you two files:
Your new file: package.exe
Your original file: package_original.exe
If the icon for package.exe looks wrong on your computer, this is expected behaviour due to the old icon being cached by Explorer. To clear the icon cache, you can execute:
ie4uinit.exe -show
(This will only be a problem on the computer that you used to edit the file; other computers should show the correct icon straight away.)

As a workaround you can create a shortcut of the exe file and then set a custom icon to it.

Related

How to change the default Open File... (folder) in Netbeans 8.2?

How can I change the default Open File... directory in Netbeans 8.2 for Java SE\ME\EE?
I've edited my projectui.properties file line projectsFolder=DIRECTORY but that only works for projects. I am trying to open individual files without opening the entire project.
File was found (Windows) under "C:\Users\MYNAME\AppData\Roaming\NetBeans\8.2\config\Preferences\org\netbeans\modules"
Unlike setting the default project directory in NetBeans, you can't modify the default Open File... directory because there is no such "default directory" to change.
NetBeans behavior when you select Open File... from the File menu (on Windows 10 at least) is as follows:
[1] On the first occasion within a NetBeans session the Documents icon will be pre-selected in the Open dialog window, and your Documents directory will be opened. That's just the way NetBeans works, and cannot be modified. Although you can change the Documents folder that will be opened, you probably shouldn't. See below for details**.
[2] Within the Open dialog you can obviously navigate to any alternative folder to open a file. Thereafter, within that NetBeans session only, that alternative folder will be opened by default on the subsequent File -> Open File... selections, until an alternative directory is selected.
~~~~~
** To change the Documents folder in Windows (which will also change the folder that NetBeans opens on the initial use of File -> Open File..):
In Windows File Explorer select Desktop -> This PC -> Documents and right-click.
Select Properties from the drop down menu, and then select the Location tab in the Document Properties window.
Enter the name of the new folder to be used as the Documents folder and click OK.
Restart NetBeans, select File-> Open File... and the folder NetBeans opens will now be the one you specified in the previous step.
That may appear to have the desired affect, but other Windows applications also use the Documents folder, and may depend on files in that folder, so it shouldn't really be changed without good reason. If you really need to open files in NetBeans that are not within any project the cleanest approach would be to place such files in the Documents folder if possible.
One solution would be to move the NetBeansProjects in the Documents folder mentioned above to the desired place and to place a permanent symlink to the desired folder. Instructions for latter referenced here https://superuser.com/questions/1020821/how-to-create-a-symbolic-link-on-windows-10
Watch out if the secondary location could be temporary (like a network drive) that it's always in place before you launch Netbeans.

How to open atom editor?

I'm new to atom (atom.io), I have downloaded it, and success installed it. But how to open this editor?
There is no shortcut in my desktop. And no atom icon on my start menu.
How to open this editor?
If you are using windows check:
C:\Users\<yourUserName>\AppData\Local\atom
Atom SETTINGS -> System: tab -> Checked two options:
- Show in file context menus
- Show in folder context menus
First go to this location
C:\Users\<YOURUSERNAME>\AppData\Local\atom
In my case YOURUSERNAME is hp. After going to that folder check the file name atom with atom symbol of type application.
Click on the link below to see the picture.
After that, right click that file and click the option create shortcut. Then move the shortcut to your Desktop.
Now you can access/open atom editor from your desktop.
ENJOY!
cd C:\Users\<YOURUSERNAME>\AppData\Local\atom
start atom.exe
Just copy this code to a notepad file and save it as Atom.bat on your desktop. I know it is a workaround, but hey, it works!
You can customize the icon too if you want by going to it's properties.
Please unhide "hidden files"
Find on this location [AppData is a hidden folder in windows10]
C:\Users<YOURUSERNAME>\AppData\Local\atom
It's in "GitHub, Inc" folder in start menu.
If there isn't, go to C:\Users\<YOURUSERNAME>\AppData\Local\atom or
C:\Users\<YOURUSERNAME>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\GitHub, Inc
If these do not work, reinstall it! and after it finished try to pin it on Taskbar.
You need to access the Atom app settings as described here: https://atom.io/packages/settings-view#:~:text=Usage,File%20%3E%20Settings%20(Windows).
"You can open the Settings View by navigating to Edit > Preferences (Linux), Atom > Preferences (macOS), or File > Settings (Windows)."
For windows computer: On the Atom app home screen click on File, then settings. You then scroll to System settings and select all the check boxes as shown in one of the images in the answers in this thread.
After completing these steps you will notice that if you right click on any of your files, and click "open with" Atom will be one of the options to open your file with. After opening Atom you can right click the icon on your task bar and click "pin to task bar" and use that as your shortcut.
Bizarrely, I actually just found it in
C:\Windows\SysWOW64\config\systemprofile\AppData\local\atom\atom.exe
It was installed by chocolatey; perhaps that affected the install location? On a different system chocolatey installed it in a more normal place.

How can I config workspace in chrome?

I'm trying to activate workspace tool for my local project. I want to apply CSS changes on my codes when I edit them into browser.
I've added my folder, perfix url and path of my project to the Chrome like this:
But still there isn't any change in my codes when I change it into browser, What's wrong?
Here are the steps to map a local workspace to a server path, using my example:
Click "Add folder" in the Workspace settings, and navigate to your working directory. Click "Allow" in the bar at the top to grant Chrome permissions.
Add a mapping between your server and the path
Load the URL and navigate to the Sources tab. Open your file and start editing.
If you save with Cmd+S (Mac) / Ctrl+S (Windows / Linux), the changes will be persisted in the workspace.
You can read more information from the official documentation here, which shows how to add it directly from the Sources panel. Read the Limitations section, in case you are trying to do something that isn't supported.

Perforce visual client (P4v) shortcut icon not displaying

I run the Perforce Windows client, P4V, on both my office computer and my laptop. On the office computer it displays a standard P4V icon (a silver 'V' in a red circle). On the laptop it displays a generic icon that looks like three colored blobs in a window.
On the laptop I tried to change the icon in the P4V shortcut's Properties dialog. When I clicked "Change Icon" I got an error box that said, "Windows can't find the file %USERPROFILE%\Documents\...\p4v_IDI_ICON1.ico." The pathname refers to a folder that I created to store notes. There's no reason why a Perforce icon should be in that folder. I'm mystified that Perforce is even aware of the folder, since it's not in any depot.
I looked for the named .ico file in my office computer's Perforce installation directory. It's not there.
What can I do to make the Perforce icon display correctly on the laptop?
You should be able to select the icon from the executable, which is likely at "C:\Program Files\Perforce\p4v.exe" (or %PROGRAMFILES%\Perforce\p4v.exe in the generic).
On my system the icon was assigned by the installer, and has a cryptic path into the Windows Installer folders, but, I am also able to use the icon from the exe above.
The P4V executable file on the laptop does not contain any icons at all -- that's the cause of the problem.
I did figure out a way to solve the problem, though:
On the office computer, open the P4V shortcut's Properties dialog.
Click Change Icon. The Change Icon lists one icon (the one I want).
"Look for icons in this file" gives the pathname of a weirdly named
EXE file in a directory named %systemroot%\Installer.
Email the weirdly named EXE file to myself as an attachment.
On the laptop, save the EXE file.
Open the P4V shortcut's Properties dialog. Click Change Icon. Enter
the pathname of the saved EXE file in "Look for icons in this file." The
dialog shows the icon I want.
Select the icon and close the dialog.
Now the right icon appears in the task bar when I start P4V. The wrong icon still appears in the Start menu, but I hope that that will correct itself the next time I reboot.

Running ASP file directly on your browser without typing into url

I'm currently new to asp.
I have just started running ASP file and the problem is every time I run an ASP file I have to enter the Path through url in browser.
example : http://localhost/MyWeb/test.asp
Is there any quick way of testing the ASP pages on browser.
I have created a Test server in Adobe Dreamweaver and able to run ASP pages via Dreamweaver.
But I want to run ASP files just by double Clicking on it.
Is there any way to do that.
Thanks in advance.
What you ask for is not directly possible.
What you can do is write a batch file, call it for example "DisplayPage.bat" and with such code:
set str=%1
set str=%str:C:\inetpub\wwwroot=http://localhost/MyWeb%
set str=%str:\=/%
start IEXPLORE.EXE %str%
REM pause
This is assuming your root web folder is "C:\inetpub\wwwroot" if not change to your root folder path.
Now having this follow these steps:
Right click any .asp file and choose "Open with"
In the menu select "Choose default program..."
Browse to the batch file you created above and confirm. Tick the "Always use the selected program to run this kind of file" to make it permanent.
This will cause double clicking to open the clicked file in Internet Explorer, pointing to localhost.
The above steps are for Windows 7 but can be achieved easily for any OS.
If something goes wrong with the process you can remove the "REM" from the last line so the batch file pause and show what went wrong.
You can use includes
there are two types of includes File and Virtual read more at http://www.w3schools.com/asp/asp_incfiles.asp

Resources