Jump to content

_Drives.au3 (UDF)


JScript
 Share

Recommended Posts

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

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

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

(...)

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 Function

I'll do some more tests to check this error...

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

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...