mdwerne Posted March 29, 2012 Share Posted March 29, 2012 (edited) Hello, I'm developing a WinPE3.x CD and I am looking for a way to execute a program on the CD whose path is based on the Drive Name (Label), not the Drive Letter. I've looked in the forums and I've not yet found a way to do this. The name of the CD is simply, "WinPE3". Thanks for any suggestions, -Mike P.S. Just located DriveGetLabel, not sure how I could make that work for me. Edited March 29, 2012 by mdwerne Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 mdwerne, See "drivegetlabel" in the help file kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
mdwerne Posted March 29, 2012 Author Share Posted March 29, 2012 All I had to do was ask, and I think I found something that will work from this $aDrives = DriveGetDrive("CDROM") For $i = 1 To UBound($aDrives) -1 If DriveGetLabel($aDrives[$i]) = "WinPE3" Then MsgBox(0, "Result", DriveGetLabel($aDrives[$i]) & " is drive " & StringUpper($aDrives[$i])) EndIf Next-Mike Link to comment Share on other sites More sharing options...
mdwerne Posted March 29, 2012 Author Share Posted March 29, 2012 (edited) mdwerne,See "drivegetlabel" in the help filekylomasThanks kylomas...will do. Edited March 29, 2012 by mdwerne Link to comment Share on other sites More sharing options...
kylomas Posted March 29, 2012 Share Posted March 29, 2012 mdwerne, Consider that some of these people have been working with AutoIT since 2004. There is very little that cannot be gleaned from searching this forum and google. Glad you found your answer, kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
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