Op 28-11-2012 6:39, bruce.bowman tds.net schreef: > Something is definitely wrong with nonexistent drive D:, and I suspected > the source to be one or both of the USB device drivers usbaspi.sys or > di1000dd.sys. These drivers were the ones recommended by the DFSee live > CD that I've been hacking for this project.
Using BIOS Legacy USB emulation together with a later-loaded stack of drivers usually means trouble as the driveletter is pointing to a disk no longer controlled by BIOS. Instead the DOS USB-driver you used assigns a new driveletter. Same typically happens to mouse, keyboard and cdrom devices if they're connected to USB. Loading a USB stack of your own disables the emulation provided by BIOS entirely, and thus if the new stack is incomplete (lacking a driver for USB CDROM for example) you lose access to that device. This is also the reason many systems only allow USB sticks in USB2-ports as install/live disk. My apologies for not having pointed you to the /F switch for the shell in advance when trying IF EXIST X:\NUL stuff As someone mentioned earlier, use separate batchfiles or use one with labels where the file calls itself slightly recursively. @echo off echo This is file1.bat for %%x in ( C D E .. X Y Z ) do if exist %%x\NUL call file2.bat %%x @echo off if "%1"=="" goto error echo This is file2.bat checking %1 IF exist %1\GAMES\NUL echo Games directory found! rem rest of checks go here goto end :error echo No file specified goto end :end echo Reached end of file2.bat Recursively: @echo off if "%1"=="" goto init goto loop :loop if "%1"=="" goto end if exist %1\NUL echo %1 exists! shift goto loop :init call %0 C D E .. X Y Z goto end :end Many variations are possible. Maybe easiest even to use 4DOS as shell as that allows more complex scripts. Bernd ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user