Im currently trying to execute a batch script under dos thats being booted before windows
Im trying to Load the img file containing the boot sectors to boot into a "bootable floppy" from flash disk and execute a batch file called installer.bat
When the batch file is run it should ask a the technician to verify a drive letter, and then the batch script will copy over a folder called xosl
to that particular hard drive, i.e. C:\xosl\
This is what I have so far:
echo OFF
CLS
:MENU
echo .
echo ...............................................
echo XOSL Installer
echo ...............................................
echo .
SET /P D=Enter drive letter such as (C:):
IF NOT EXIST %D% GOTO NOWINDIR
mkdir %D%/xosl/
xcopy /xosl/*.* %D%/xosl/
cd %D%/xosl/
START %D%/xosl/install.exe
:NOWINDIR
ECHO Drive does not exists
GOTO MENU
The issue is it keeps iterating over and over again, this is why i think im going wrong within the SET /P
... what am i doing wrong ?
Update:
This is what im getting..
...............................................
XOSL Installer
...............................................
Unable to create directory
Invalid directory
Invalid directory
Syntax Error
A:\>
And its not asking me to set a Directory?