Sign in to follow this  
Followers 0
Clever1mba

Label ALL drives

2 posts in this topic

#1 ·  Posted (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 Then

RunWait("LABEL & $Drives[$c]" & 'new',"",@SW_HIDE)

      EndIf

   Next

Edited by asimzameer

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0