Adding multiple steam desktop shortcuts

Adding multiple steam desktop shortcuts - Free stock photo of adult, coffee, computer

I've just read this page about creating desktop shortcuts for my games, however steam recently broke for me and I lost all my shortcuts. Although I can create them one at a time, I have almost 215 games and it would take me at least an hour to sort them. Is there an easier way to create a mass amount of shortcuts or do I have to do it manually?

If it helps, I use fences

Thanks in advance.



Best Answer

I wrote this AutoHotkey script to generate shortcuts (no icon images though)

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Loop, *, 0, 0
{
    if RegExMatch(A_LoopFileName, "appmanifest_\d+\.acf") {
        FileToRead = %A_LoopFileName%
        TempFile := "shortcuts_tempinfo.txt"
        FileDelete, %TempFile%
        RunWait,shortcuts.bat %FileToRead% >> %TempFile%,,Hide
        FileRead,Output,%TempFile%
        FileDelete,%TempFile%
        FoundPos := RegexMatch(Output, """name"".*?""(.*?)""", SubPat)
        Name := RegExReplace(SubPat1, "[^a-zA-Z0-9 ]")
        StringReplace, LoopFileName, A_LoopFileName, appmanifest_
        StringReplace, LoopFileName, LoopFileName, .acf
        IniWrite, steam://rungameid/%LoopFileName%, %A_Desktop%\%Name%.url, InternetShortcut, URL
    }
}
MsgBox, Finished

It needs to be placed inside your SteamApps folder with shortcuts.bat (below)

@echo off
type %1

The script scans through your appmanifest files and creates desktop shortcuts like Steam would, except for the missing icon. (I couldn't figure out a way to find the icon for a game yet due to varying game folder structures)




Pictures about "Adding multiple steam desktop shortcuts"

Adding multiple steam desktop shortcuts - Free stock photo of adult, child, computer
Adding multiple steam desktop shortcuts - Free stock photo of adult, child, computer
Adding multiple steam desktop shortcuts - White Clouds over Gray Mountain



Quick Answer about "Adding multiple steam desktop shortcuts"

  • Navigate to your Steam Common Apps folder: (commonly C:\Program Files (x86)\Steam\SteamApps\common)
  • Use the Search function in the top right corner and search for *.exe.
  • Select the games from the resulting search you wish to create shortcuts for using ctrl+left click.
  • Right click, and select send to > desktop.


  • How do I create a desktop shortcut for all Steam games?

    If your game does not have a desktop shortcut in Windows 10, find it in your Steam Library and right-click on its name to open a contextual menu. Then, go to Manage and press on the \u201cAdd desktop shortcut\u201d option. This creates a desktop shortcut for the Steam game you want to pin.

    Can you add shortcuts to Steam?

  • Navigate to your Steam installation (by default this is located at C:\\Program Files (x86)\\Steam)
  • Right-click on steam.exe (this file is listed as an application and features the black and white Steam logo) and select. Create Shortcut.
  • Right-click on the new shortcut and go to. Properties.
  • Select the. Shortcut. ...
  • In the. ...
  • Click.




  • How to create desktop shortcuts for Steam Games 2022




    More answers regarding adding multiple steam desktop shortcuts

    Answer 2

    This may not be perfect, as some game folders contain multiple executables, but I've just tested the following on my work system (which only has a few games installed)

    • Navigate to your Steam Common Apps folder:

      (commonly C:\Program Files (x86)\Steam\SteamApps\common)

    • Use the Search function in the top right corner and search for *.exe

    • Select the games from the resulting search you wish to create shortcuts for using ctrl+left click

    • Right click, and select send to > desktop

    Not perfect, but it should be faster than manually selecting them!

    Answer 3

    I wrote a solution to this in Python - though you can't choose which are created, it just makes shortcuts for all installed games https://github.com/JeeZeh/steam-shortcut-generator

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Ron Lach, Ron Lach, Ron Lach, Cristian Salinas Cisternas