Data Realms Fan Forums http://45.55.195.193/ |
|
Relative executable shortcuts - handy for memory sticks http://45.55.195.193/viewtopic.php?f=7&t=21152 |
Page 1 of 1 |
Author: | Roast Veg [ Mon Jan 17, 2011 6:53 am ] | ||
Post subject: | Relative executable shortcuts - handy for memory sticks | ||
Have you ever really badly needed a relative shortcut? Like when you need a shortcut on a memory stick that references something else on itself, but the drive keeps changing whenever you go anywhere? Well I found a little solution to that predicament, and all you need is five minutes. Firstly, a quick description for people who know what they're doing already. In this mini-torial I'm just going to make a batch file, then take the icon file from the executable, then compile it to another executable. Nobody would know the difference. Step 1: Make a batch file. Open notepad, then you need to locate where your shortcut will be, and where your executable is now. My shortcut is in F:/Games, and my game is in F:/Games/Game/Gamefiles/Game.exe, so my batch file will look like this: Code: cd Game/Gamefiles START Game.exe Step 2: Get your icon. I used BeCyIconGrabber, which you can find in the zipped folder at the bottom of this thread. The principle is simple, you locate the file and save it as a .ico file somewhere you can get back to it. Step 3: Put it all together We're going to use a free batch to executable compiler, also in the contents of the attachment. You shouldn't need to mess with any of the settings, just locate the File.bat at the top, rename it to the name of your game in the next one down, then under the "Versioninformations" tab, set the icon file to your game's icon. Then hit the lovely compile button. You're done!
|
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |