
Most gamers store their game shortcuts in Steam’s game library because they don’t like to clutter up their desktop with more icons. This is a great solution except for one small problem. Steam has this annoying little habit of randomly removing shortcuts to any non Steam games from your games library.
So what can be done? The answer is fairly simple. All you need to do is make a backup your Steam’s shortcuts.vdf file. I recommend doing this after adding a new game to your game library. There are multiple copies of the shortcuts file so you want to be sure you back up the right one.
1. Locate the folder where Steam is installed.
Let’s use d:\games\Steam as an example.
2. Navigate to d:\games\steam\userdata\Your Profile #\config .
3. Copy shortcuts.vdf to shortcuts – Copy.vdf
That’s it. Anytime your shortcuts go missing, simply exit Steam and copy shortcuts – Copy.vdf back to shortcuts.vdf, overwriting the corrupt shorcuts file. Restart Steam and your shortcuts will be restored.
You may also download this handy batch script (.bat) file to do the job for you. Just place it in your \steam\userdata\Your Profile #\config folder and create a shortcut to the batch file on your desktop or Start menu. Here is the source code to the script for those who are paranoid about downloading batch files to your computer:
@echo off
CHOICE /C:BRQ /M “(B)ackup Steam Shortcuts, (R)estore Shortcuts, (Q)uit”
IF ERRORLEVEL 3 GOTO End
IF ERRORLEVEL 2 GOTO Restore
IF ERRORLEVEL 1 GOTO Backup
goto End
:Backup
CHOICE /C:YN /M “This will replace existing backup. Are you sure?”
IF ERRORLEVEL 2 GOTO End
IF ERRORLEVEL 1 GOTO ConfirmBackup
goto End
:ConfirmBackup
copy shortcuts.vdf “shortcuts – Copy.vdf”
echo Backup Complete
pause
goto End
:Restore
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo.
echo Please make sure you have completely exited out of Steam first!
echo.
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo.
pause
del shortcuts.vdf
copy “shortcuts – Copy.vdf” shortcuts.vdf
echo Restore complete. Restart Steam.
pause
:End