DECLARE aVolLabel[1,5] =ADIR(aVolLabel,'C:\*.*','V') && use the drive letter you want wait window 'Volume label is '+aVolLabel[1]