Jump to content

Label ALL drives


Recommended Posts

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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...