Jump to content
Sign in to follow this  
JScript

_Drives.au3 (UDF)

Recommended Posts

JScript

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!

Share this post


Link to post
Share on other sites
OregonJohn

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.

Share this post


Link to post
Share on other sites
TinyHacker

Over 40 downloads and no comments?

THANK YOU VERY MUCH Mr, GREAT JOB!

Share this post


Link to post
Share on other sites
JScript

(...)

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!

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.