Page 1 of 1

Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 10:19 am
by OSH
Hi, I have problem...
I want to start Microsoft Flight Simulator 5.1 directl7y after system load (from autoexec.bat). I installed game, but when I put "fs5.com X" on the end of autoexec.bat, game don't start, I see only prompt. And I don't know, what I'm doing wrong. Norton Commander can be started in this way, but MSFS can't....

Code: Select all

@REM ===== PPLT INITIALIZATION ==========
;@SET PROPATS=C:\GUSINSTA\PPL160
@REM ===== PPLT INITIALIZATION ENDS =====
C:\QEMM\LOADHI /R:2 /LO C:\DOS\SMARTDRV.EXE /X
@ECHO OFF
PROMPT $p$g
PATH C:\QEMM;C:\DOS
rem mscdex.exe /d:banana /L:D
C:\QEMM\LOADHI /R:1 C:\MOUSE.COM
SET TEMP=C:\DOS
SET BLASTER=A220 I5 D1 H5
REM set ultradir=c:\ultrasnd
REM SET ULTRASND=240,7,7,7,7
REM C:\ULTRASND\ULTRINIT
C:\MSFS5.1\fs5.com x

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 12:32 pm
by leilei
You could probably add a CD MSFS5.1 in there.

Games aren't shell apps. They expect to be run from their working directory.

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 1:28 pm
by OSH
I know, I add this CD MSFS 5.1, but this didn't help...

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 6:57 pm
by gen_angry
OSH wrote: Mon 26 Mar, 2018 1:28 pm I know, I add this CD MSFS 5.1, but this didn't help...
If that's ad verbatim, you can't have spaces in DOS folders.

delete:

Code: Select all

C:\MSFS5.1\fs5.com x
add:

Code: Select all

cd\MSFS5.1
fs5.com x
to the last line of your autoexec.bat file. Assuming the path/folder name and command file name is correct, it should launch.

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 8:52 pm
by szadycbr
what is the "X" for?

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 8:54 pm
by OSH
Unfortunately didn't help... no, I haven't space in the directory name. I changed this name to MSFS...
I don't know, what X is...

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 9:05 pm
by terub56
Could be a problem of QEMM?
Have you tried memmaker?

Re: Autostart from autoexec.bat

Posted: Mon 26 Mar, 2018 10:25 pm
by OSH
Well, no, but if I disable QEMM the situation is still the same.

Re: Autostart from autoexec.bat

Posted: Tue 27 Mar, 2018 5:50 am
by szadycbr
OSH delete that x , if its in the file name then change it as well, delete it. btw. what does dos prompt say? go into game directory and run exact command with the x and look what prompt is saying.

Re: Autostart from autoexec.bat

Posted: Tue 27 Mar, 2018 7:49 am
by OSH
If i go into game directory and type fs5.com x (or without X), then game starts normally. Problem is, I can't start this game directly from autoexec.bat.

Re: Autostart from autoexec.bat

Posted: Tue 27 Mar, 2018 8:26 am
by terub56
CALL should only work witch batch files, but as a test try:
call C:\MSFS5.1\fs5.com x

Re: Autostart from autoexec.bat

Posted: Wed 28 Mar, 2018 10:39 pm
by OSH
Finally, thanks guy from DOSBOX forum I found cause...
https://imgur.com/a/Xn7C1
This is my config.sys. The cause was this small arrow behind ULTRINIT in autoexec.bat. I can't even reproduce this sign, so I give screenshot with config.sys. When I deleted it, MSFS finally starts normally.
Thanks for help!