I have a shortcut with a custom icon on it, the icon shows fine until I try copy the shortcut to another machine.
I have the icon saved in the same folder as the shortcut yet it still does not show when copied to another machine.
I was wondering if there was a way to have this icon stored inside the shortcut or some way to have it get the icon from the current folder with a relative path?
Icons cannot be stored inside a .lnk file and you cannot use a relative path to the icon.
The only thing you can use are environment variables (the .lnk will have a EXP_SZ_ICON_SIG data block).
Related
I'm trying to inspect the code in a module found in a subfolder of /usr/local/lib/python3.9/site-packages/*.
The trouble is that Visual Studio Code only gives me the system finder view, to navigate to the folder, and I'm not quite sure how to get to the root to even find /usr.
typing the path in the search bar doesn't help
navigating to Macintosh HD and or Volumes still doesn't show me /usr or other common Linux folders located on the root filesystem.
This method should work in any app that uses the standard file dialogs:
In the Finder open a new window
Type Command-Shift-G or select Go to Folder… from the Finder’s Go menu
Enter your path, e.g. /usr/local/lib/python3.9/site-packages
You now have a Finder window showing the (parent) folder of where you want to explore
In VSCode type Command+O or select Open… from the File menu
A standard file dialog will open
Click on a folder icon in your Finder window, this can be an icon in the window itself or the one in the window’s title bar, and drag and drop it onto the standard file dialog.
The dialog will switch to show the dropped folder
Continue navigating as usual
I have created an MFC application which has the icon for it as part of its resources. Now, when I place the shortcut to the application on Desktop the icon for the application appears as expected. But now when I create a folder and move this shortcut inside that folder; it becomes blank.
I am facing another situation as well; where the exe kept inside the output folder doesn't show the icon and is blank. But as soon as I change the name of the exe both the icon in the output folder aswell the desktop icon for it appears.
I am using Windows 10 and application is built using VS2008. Could you please help?
I want to change the folder icon in C drive. When I go onto the tab "Customize" in folder Properties, choose an icon and then apply, nothing happens.
You can use FileTypesMan,a nirsoft tool that allows you to do a lot of things.
Dowload FileTypesMan and open it.
Locate your type of file (like image, or folder for exemple)
Click on it and select "Edit Selected File Type"
Change defaut icon and confirm
An example for png file :
Example to change png type files
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'm using Perforce for managing our code base. In Perforce, we need to check out a file before we can edit it. When I'm working in Xcode, sometimes I want to know the full path to the working file so that I can check it out in Perforce.
So here is my question:
Is there a shortcut, plugin or some other quick way to copy the full path of a file in Xcode?
What I have known:
I can Command+click on the file tile to show up the full path, but I cannot copy it.
In Visual Studio, we can right click on the file's tab and choose Copy Full Path to achieve this.
In Eclipse, we can Alt/Option + Enter to achieve this.
Update:
Actually my question is about how to achieve the equivalent Copy Full Path feature inside Xcode. Anyway, dragging the file to the terminal is also a very nice workaround.
You can copy it directly out of the File Inspector. The first section ("Identity and Type") of the File Inspector shows information about the selected file, or the file that contains the selected symbol, etc. You have Name, Type, Location, and Full Path. You can select the full path and copy it.
As a shortcut, a triple click on any part of the path will select the entire path. There's also a small icon with a light arrow on a dark background -- clicking that will open a Finder window with the file selected.
You can drag it to a terminal... Easy and fast...
on your editor XCode (you want to get the file path). Press:
Command+Shift+J
xcode will open directory file path on Project Navigator (left side bar)
and then drag-and-drop file from Project Navigator to the terminal. it will give you the directory of the file.
You can use find command to copy file path:
cd myProject
find . -name myCodeFile.cpp
Extending Caleb's answer, here is a graphical demo:
Steps:
Select a filename on the Project navigator from the left side Navigator panel.
Tap on Show File Inspector from the right side Inspectors panel. (marked with red box)
Copy the path from there. (marked with a bigger red box)