Making a Windows shortcut start relative to where the folder is?

后端 未结 15 2479
自闭症患者
自闭症患者 2020-11-30 20:36

I have a game that uses this file structure:

GAME FOLDER
->data
->data->run.bat

I want to put a shortcut to run.bat i

15条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 20:59

    After making the shortcut as you have, set the following in Properties:

    Target: %comspec% /k "data\run.bat"

    • Drop the /k if you don't want the prompt to stay open after you've run it.

    Start In: %cd%\data

提交回复
热议问题