Powered by GeSHi

Source code for curdriv1.bat

(view source code of curdriv1.bat as plain text)

  1. @ECHO OFF
  2. :: CURDRIV1.BAT
  3. :: Store current drive in environment variable CURDRV$
  4. :: Written by Rob van der Woude
  5. :: http://www.xs4all.nl/~robw/rob/
  6. :: Technique by Laurence Soucy
  7. :: http://bigfoot.com/~batfiles/
  8. ::
  9. CD | CHOICE /N /C:ABCDEFGHIJKLMNOPQRSTUVWXYZ SET CURDRIVE=>%TEMP%.\CURDRV$.BAT
  10. FOR %%A IN (CALL DEL) DO %%A %TEMP%.\CURDRV$.BAT
  11. ECHO."%CURDRIVE%"
  12.