JScript Posted August 1, 2010 Share Posted August 1, 2010 Hello everybody,I think this UDF will help many who use the command line (Subst.exe and diskpart.exe) to perform these procedures:1- Defines, redefines, or deletes MS-DOS device names;2- Associates a volume with a drive letter or a directory on another volume;3- Editing Drive Letter Assignments.Functions:_ChangeDriveLetter()_VirtualDrive()Download: _Drives.au3 http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
JScript Posted August 11, 2010 Author Share Posted August 11, 2010 Over 40 downloads and no comments? I wonder if the UDF is working correctly, if I needed to change or add something... Send comments! http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
OregonJohn Posted August 19, 2010 Share Posted August 19, 2010 I tried it. No go. I inserted the following into your script: _ChangeDriveLetter("W", "T") MsgBox(0,"","error is number " & @error) I got error 5 -- Unable to delete mount point. Drive W can be changed to T in Computer Management, so there's no apparent block. I have XP Pro SP3 So sad, because I could have really used it. I can use DiskPart to change the drive letter but I don't have the disk number, just name and letter. I can't find any way to convert the name or letter to a disk number. Link to comment Share on other sites More sharing options...
OregonJohn Posted August 19, 2010 Share Posted August 19, 2010 I found what I needed with _GetDiskNimberForDriveForum threadPost #9 Link to comment Share on other sites More sharing options...
TinyHacker Posted August 20, 2010 Share Posted August 20, 2010 Over 40 downloads and no comments? THANK YOU VERY MUCH Mr, GREAT JOB! Link to comment Share on other sites More sharing options...
JScript Posted August 20, 2010 Author Share Posted August 20, 2010 (...)I got error 5 -- Unable to delete mount point.Drive W can be changed to T in Computer Management, so there's no apparent block.I have XP Pro SP3(...)?Well, DeleteVolumeMountPoint FunctionI'll do some more tests to check this error... http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
JScript Posted August 20, 2010 Author Share Posted August 20, 2010 (edited) Over 40 downloads and no comments? THANK YOU VERY MUCH Mr, GREAT JOB! Glad it worked... Edited August 20, 2010 by jscript http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! 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