How to create a Windows shortcut for Doomsday

From Doomsday Wiki
Jump to: navigation, search

This is a tutorial for making a custom Windows shortcut for Doomsday, courtesy of code120

  1. Open the Doomsday Frontend, press Alt+C to get the command line ("Preview command line").
  2. Paste everything in a text editor (e.g., Notepad 2) and join all lines (select all & Ctrl+J), select all & copy.
  3. Create a .bat file in the Doomsday folder, with the following commands (paths are examples):
    D:\Doomsday\bin\Doomsday.exe -basedir... (paste here the joined command line)
  4. Save the file.
  5. Create in the same dir a .js (Javascript) file with the commands (replace "filename.bat" with the name of your bat file):
var WindowStyle_Hidden = 0
var objShell = WScript.CreateObject("WScript.Shell")
var result = objShell.Run("cmd.exe /c filename.bat", WindowStyle_Hidden)

This will suffice, you'll maybe want to create a shortcut to the .js file and have a custom icon.

You can actually skip the js passage, but when you launch the .bat file directly a command prompt window will stay on the background, the js will make it hide.