Click New -> Text Document.
Rename the file replacing the extension with .cmd, for example I called mine "H4GreatestModStart.cmd".
Right click on the new .cmd file and click Edit. This will open it in Notepad.
Put these two lines in:
Code: Select all
@echo off
start "<NAME OF CMD WINDOW, CAN BE ANY VALID NAME>" /D "<PATH HERE, NOT INCLUDING FILENAME>" /affinity 1 "<PROGRAM NAME HERE INCLUDING EXTENSION>"
https://www.celestialheavens.com/forum/7/16518
Needs HOMM4 Complete or Winds of War.
I have a "H4GreatestModStart.cmd" file that has these two lines:
Code: Select all
@echo off
start "GreatestMod17" /D "<PATH TO DIRECTORY - NOTE INVERTED COMMAS ARE ONLY NECESSARY IF YOU ARE USING SPACES/LONG FILENAMES>" /affinity 1 "Equivocado 17 NoVore.exe"
Here is the help file for .cmd files (which is basically a Windows batch file):
https://ss64.com/nt/