Why do you need a bat file? Shortcut is not enough?
Most of the programs launched from the bat file require the computer to "set itself up" in the program directory, otherwise there will be errors.
For example, we want to run the G: \ Directory \ directory3_0 \ directory.exe file.
Entering the line in the batch file (bat):
G:\Katalogowanie\spis3_0\spis.exe
will run the program, but an error will occur because the program has G: \ Cataloging \ list3_0 \ as the working directory, which has not been obtained in the batch file. In this case, you would need to add the application directory to the Path environment variable, which is not convenient under XP.
However, creating a bat file with the following content:
g:
cd Katalogowanie
cd spis3_0
spis.exe
will run the program without error because the computer "set itself" in the working directory of the application.
This is also how the shortcut works, in addition to the directory with the executable program, it also "sets" the working directory of the application in accordance with the directory in which the program is located.
It should also be added that if directories / file have a space in their name, they must be enclosed in quotation marks.
I think this will solve your problem.