View unanswered posts | View active topics It is currently Thu Dec 26, 2024 6:01 am



Reply to topic  [ 1 post ] 
 Relative executable shortcuts - handy for memory sticks 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post 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
And make sure yours follows the same pattern, too. When you click save, name the file "File.bat" without the inverted commas. Brilliant, you've made a batch file that shortcuts to your game. This is the coding done.

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!


Attachments:
File comment: Have fun with these.
Relative Shortcut Tools.zip [580.58 KiB]
Downloaded 208 times
Mon Jan 17, 2011 6:53 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.408s | 14 Queries | GZIP : Off ]