Page 1 of 1

Witpchk Program Does Not Work

Posted: Fri Mar 29, 2024 5:00 pm
by BananaConvention
Hello,

I am trying to get witpchk program found in the TOOLS folder to work. When I double click it, nothing happens. It doesn't open a window, launch, or do anything. The readme states:

To run the program:
witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]

Example:
To check scenario number 26 in the default directory, run witpchkAE.exe /i /s 26.


However, I don't even get to the point where I can do this. Does anyone know how to make this work?

Re: Witpchk Program Does Not Work

Posted: Fri Mar 29, 2024 10:44 pm
by LargeSlowTarget
You need to run the tool in the DOS Command Prompt.

Push the Window key and the r key at the same time to open the "Execute" panel, then type "cmd" to open the DOS Command Prompt.

There you can run the DOS command line witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]

Re: Witpchk Program Does Not Work

Posted: Sun Mar 31, 2024 6:06 pm
by RangerJoe
If you know how to do so and if you were to use it frequently, you might want to build a batch file to run this and any other DOS program with just one click. It may even be set up to ask for the save or other information needed.

Re: Witpchk Program Does Not Work

Posted: Thu Apr 04, 2024 4:31 am
by BananaConvention
LargeSlowTarget wrote: Fri Mar 29, 2024 10:44 pm You need to run the tool in the DOS Command Prompt.

Push the Window key and the r key at the same time to open the "Execute" panel, then type "cmd" to open the DOS Command Prompt.

There you can run the DOS command line witpchkAE.exe /d <location of scenario base> /s <scenario number> /i [use default directory]
I don't know much about using the cmd prompts, could you type out an example line to show me how to format the text I need to type?

Re: Witpchk Program Does Not Work

Posted: Thu Apr 04, 2024 9:32 am
by Chris21wen
Batch files are simply text files with a different extension (.bat) that allows windows to interprept what is in them as commands. To create one from scratch:-
Create a raw txt file with notepad.
Rename it *.bat. Windows will complain you are changing the extension. Ignore it.
Right click on it and edit the contents as if it was a txt file.

This what you want?
First copy witpchk.exe into your scenario folder. This will save faffing with /d or /i switches.
Copy the attached text file witpchkAE.txt to anywhere and then rename it witpchkAE.bat.
Run it. The output of scenario s001 will be displayed in a cmd box.

Notes
You will need to edit the bat file for your scenario. To do so just change s001 to s###.
Any line beginning with rem are remarks telling you what the command above that line does