> IF NOT EXIST Z:\NUL: SET LASTDRV=Z > IF NOT EXIST Y:\NUL: SET LASTDRV=Y > ... > IF NOT EXIST C:\NUL: SET LASTDRV=C That, of course, is upside down. Not sure why I was trying to scan backwards without bailing out! Regards, Ben A L Jemmett. (http://web.ukonline.co.uk/ben.jemmett/, http://www.deltasoft.com/)