I want to make a shortcut wich both mounts an iso and launches a game

MartinDerTolle 21 Reputation points
2020-06-30T21:15:43.37+00:00

I have a little collection of old cd games, I would like to have a desktop shortcut (.lnk) for each game. I already successfully launched games without the discs but I have to manually mount the iso every time I reboot. My problem is I don't know how to mount an iso file and launch a game with one shortcut. I know it's possible with powershell, but I haven't been able to set it up, as I wasn't able to find any documentation about powershell code in shortcuts on the internet.

Please don't answer if you don't know the answer, even if similiar, theres a reason I want to have the shortcut. I don't want all of my games isos to be mounted all the time, because it will make my file explorer very unorganized.

Thanks for your help in advance :)

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jenny Feng 14,081 Reputation points
    2020-07-01T06:25:19.35+00:00

    Hi,

    You may refer to the following link for details:.
    https://stackoverflow.com/questions/7738040/how-can-make-a-batch-file-that-will-mount-a-iso-file
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Hope above information can help you.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-06-30T21:23:55.463+00:00

    In your startup script put;

    start my.iso

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments

  2. MartinDerTolle 21 Reputation points
    2020-07-01T17:56:43.307+00:00

    My solution:

    My problem was, that I was trying to use only a shortcut and not a combination of shortcut and batch file.

    One of the games I was doing this for was the german version of Lego Island 2, here's the code (batch):

    @echo off
    cd "C:\Users\berta\Documents.Iso\Games\Lego Insel 2"
    start "" "LEGO Insel 2.iso"
    cd "C:\Program Files (x86)\LEGO Media\LEGO Insel 2"
    start "" "LEGO Insel 2.exe"
    exit

    It may be possible to do it without the batch file, but I wasn't able to get that working. The only progress I was able to make with the shortcuts were these two things:

    You can mount ISOS with:
    explorer "C:[directory]\game.iso"

    You can also run an executable and a PowerShell wtih only a shortcut:
    "C:[directory]\game.exe" -powershell {some command}

    As you can see I wasn't able to mount an ISO with PowerShell through a shortcut, but it did open both my game and powershell.

    If anyone knows the proper way how to do it with a shortcut only, feel free to leave a comment here.

    Also thanks to everyone answering so early, you are the reason I got it working.