Clever1mba Posted May 20, 2005 Posted May 20, 2005 (edited) Hello i want to know how to label all drive once im trying this but have some error it only change C: Local $c, $Drives = DriveGetDrive("FIXED") For $c = 1 to $Drives[0] If $Drives[$c] <> @HomeDrive ThenRunWait("LABEL & $Drives[$c]" & 'new',"",@SW_HIDE) EndIf Next Edited May 20, 2005 by asimzameer
Wb-FreeKill Posted May 20, 2005 Posted May 20, 2005 Hello i want to know how to label all drive once im trying this but have some error it only change C:<{POST_SNAPBACK}>Why not do something like this?$Var = DriveGetdrive("FIXED") For $i = 1 To $Var[0] DriveSetLabel($Var[$i], "NewLabel"& $i) Next
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now