Search code examples
batch-filedosdosbox

how to set autoexec.txt in exe file in vdos


I have a problem using the dos emulator program.

exe and database paths as follows :

  1. Path exe : C:\Util\CAMUS.EXE
  2. Path Database : 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. 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. 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


Solution

  • Here's a link!

    @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