(view source code of curdriv1.bat as plain text)
@ECHO OFF
:: CURDRIV1.BAT
:: Store current drive in environment variable CURDRV$
:: Written by Rob van der Woude
:: http://www.xs4all.nl/~robw/rob/
:: Technique by Laurence Soucy
:: http://bigfoot.com/~batfiles/
::
CD | CHOICE /N /C:ABCDEFGHIJKLMNOPQRSTUVWXYZ SET CURDRIVE=>%TEMP%.\CURDRV$.BAT
FOR %%A IN (CALL DEL) DO %%A %TEMP%.\CURDRV$.BAT
ECHO."%CURDRIVE%"
page last modified: 2024-04-16; loaded in 0.0052 seconds