简体   繁体   English

如何在 vdos 的 exe 文件中设置 autoexec.txt

[英]how to set autoexec.txt in exe file in vdos

I have a problem using the dos emulator program.我在使用 dos 模拟器程序时遇到问题。

exe and database paths as follows : exe和数据库路径如下:

  1. Path exe : C:\Util\CAMUS.EXE路径 exe : C:\Util\CAMUS.EXE
  2. Path Database : C:\STACK\ADMIN & C:\STACK\NOW路径数据库:C:\STACK\ADMIN & C:\STACK\NOW

VDos and other files I put in the util folder but there is an error "driver data not ready may be empty" if my stack folder is moved to the util folder then the error disappears.我将 VDos 和其他文件放在 util 文件夹中,但如果将堆栈文件夹移动到 util 文件夹,则会出现错误“驱动程序数据未准备好可能为空”,然后错误就会消失。 What is the solution to keep the database path in an existing position?将数据库路径保持在现有位置的解决方案是什么? VDos and other files I put in the util folder but there is an error "driver data not ready may be empty" if my stack folder is moved to the util folder then the error disappears.我将 VDos 和其他文件放在 util 文件夹中,但如果将堆栈文件夹移动到 util 文件夹,则会出现错误“驱动程序数据未准备好可能为空”,然后错误就会消失。 What is the solution to keep the database path in an existing position?将数据库路径保持在现有位置的解决方案是什么? thanks谢谢

@ECHO OFF

rem This is essentialy the autoexec.bat of DOS.
rem Only one additional vDos specific command is available: USE.

rem At startup only z: (bootdisk/command.com) is known by DOS.
rem So first you assign one or more DOS driveletters to Windows directories.
rem Use <driveletter:> <Windows directory>
rem Files/directories that don't confirm to the DOS 8.3 filenaming are hidden (as it should).

rem To just use the vDos working directory as c:
USE C: C:\Util\
c:
cd CAMUS.EXE
CAMUS.EXE

rem switch from z: to c:
C:
exit

screenshot截屏

@ECHO OFF

rem This is essentialy the autoexec.bat of DOS.
rem Only one additional vDos specific command is available: USE.

rem At startup only z: (bootdisk/command.com) is known by DOS.
rem So first you assign one or more DOS driveletters to Windows directories.
rem Use <driveletter:> <Windows directory>
rem Files/directories that don't confirm to the DOS 8.3 filenaming are hidden (as it should).

rem To just use the vDos working directory as c:
USE C: C:\
c:
cd C:\UTIL
CAMUS.EXE

rem switch from z: to c:
C:
exit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM