中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-04 02:09
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Work together to solve problems, make money together! `` (batch file topic)
Printable Version  1,118 / 11
Floor1 14602737qq Posted 2007-04-04 19:14
新手上路 Posts 7 Credits 16
The topic is as follows:
Under WIN98, using DOS batch file methods, make the computer (810 motherboard) automatically open a program as soon as it is powered on (without entering the system). The program is a game, and after opening it also has to be full-screen.

I hope some capable people here can give it a try. If it can be done, please contact me and we can discuss the details. In a commodity economy society, effort brings reward, hehe. QQ14602737, EMAIL:hehe.lu@yahoo.com.cn
Floor2 NaturalJ0 Posted 2007-04-04 21:13
银牌会员 Posts 533 Credits 1,181
A game running above the operating system?
Floor3 14602737qq Posted 2007-04-04 21:23
新手上路 Posts 7 Credits 16
I don't quite get it either, but you can still see the WIN98 LOGO when it starts, and after that it goes straight into the game. It should be done with something like DOS batch commands.
Floor4 NaturalJ0 Posted 2007-04-04 21:29
银牌会员 Posts 533 Credits 1,181
The games you mentioned probably cannot run independently without the operating system.
You'd better first make sure whether your game is a game under WINDOWS or under DOS.
Floor5 14602737qq Posted 2007-04-04 21:34
新手上路 Posts 7 Credits 16
WIN98 has the Autoexec.bat function, so it should be done on the WIN98 system. I don't understand exactly how to set it up, but when I put the sample machine's hard disk into another computer, I found that they were all DOS commands, so I feel this was done with batch commands.
Floor6 14602737qq Posted 2007-04-04 21:36
新手上路 Posts 7 Credits 16
Detailed explanation of Autoexec.bat
  DOS will automatically run the file autoexec.bat at startup. We generally load into it programs that are needed every time, such as: path (set the path), smartdrv (disk acceleration), mouse (start the mouse), mscdex (CD-ROM connection), doskey (keyboard management), set (set environment variables), etc.
  If there is no such file in the root directory of the boot disk, the computer will ask the user to enter the date and time.

  For example, the contents of a typical autoexec.bat are as follows:

@echo off                     Do not display the command line

prompt $p$g                    Set the prompt to include the directory

path c:\dos;c:\;c:\windows;c:\ucdos;c:\tools    Set the path

lh c:\dos\doskey.com                Load keyboard management

lh c:\mouse\mouse.com               Load mouse management

lh c:\dos\smartdrv.exe               Load disk acceleration management

lh c:\dos\mscdex /S /D:MSCD000 /M:12 /V      Load the CD-ROM driver

set temp=c:\temp                  Set the temporary directory
Floor7 zh159 Posted 2007-04-04 21:49
金牌会员 Posts 1,467 Credits 3,687
The default configuration of 98 is to automatically append win.com afterward to start the 98 operating interface after the Autoexec.bat items have finished loading; and a game in 98 can never be loaded before Win.com starts.

Because Microsoft systems after 98 all load explorer.exe after startup. Back then, some people changed 98's loading of explorer.exe to Office software, so after startup it would go directly into the Office software and the resource manager could not be used. I believe what the OP is talking about is also this.

I forgot whether to modify system.ini or win.ini (in XP I didn't find explorer.exe being loaded in these two files). It seems that as long as you change the loading of explorer.exe to the corresponding path\*.exe it will be ok

PS: You must first make a backup of the file, for easier restoration later
Floor8 wsy1986 Posted 2007-04-05 03:26
新手上路 Posts 7 Credits 5
Bump
Floor9 14602737qq Posted 2007-04-05 05:47
新手上路 Posts 7 Credits 16
Originally posted by zh159 at 2007-4-4 08:49 AM:
The default configuration of 98 is to automatically add win.com at the end after the items in Autoexec.bat have finished loading, to start the 98 GUI; and games in 98 can never be loaded before Win.com starts.

Because Microsoft's systems after 98 ...

Anyway, that whole computer only cost a bit over 200, so I'll try it right away. I'll come back in a bit and say how it works out.
Floor10 14602737qq Posted 2007-04-05 14:05
新手上路 Posts 7 Credits 16
As soon as I messed with it, it wouldn't boot anymore. How should the .BAT be written under DOS? Please, experts, help me out.
PS: as soon as it powers on, it should go directly into the game interface, with no need for any other operation `
Floor11 zh159 Posted 2007-04-05 23:12
金牌会员 Posts 1,467 Credits 3,687
The Autoexec.bat method before win.com is ineffective, and after win.com starts 99 it also won't load Autoexec.bat, so Autoexec.bat alone is useless

Or put the game's shortcut into the Startup group of the Start Menu so it launches automatically after boot and enters the game interface

Besides, without loading the 98 system, how are you going to run a game in 98?????
Floor12 chenall Posted 2007-04-05 23:23
银牌会员 Posts 469 Credits 1,276 From 福建泉州
Modify the C:\WINDOWS\SYSTEM.INI file
Change
[BOOT]
SHELL=EXPLORER.EXE
and modify EXPLORER.EXE to your program path and name, for example C:\GAME\游戏菜单.EXE
After startup it will automatically launch C:\GAME\游戏菜单.EXE
If EXPLORER.EXE is not started, then after closing this program it will shut down.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023