Jump to content
Sign in to follow this  
yaoyao117

question about the drive's name ?

Recommended Posts

yaoyao117

I can get the system drive name such as $sysdirve=@HomeDrive.but when i scripting in the orther drives ,such as d: ,I want to get the current drive name ,but,I can't get it ! please help me !

Share this post


Link to post
Share on other sites
MHz

Have you tried using DriveGetLabel ?

If it is not in your current version of Autoit, then get the latest 3.0.103 unstable.

:idiot:

Share this post


Link to post
Share on other sites
this-is-me

$sysdrive = StringLeft(@WindowsDir, 2)


Who else would I be?

Share this post


Link to post
Share on other sites
yaoyao117

Have you tried using DriveGetLabel ?

If it is not in your current version of Autoit, then get the latest 3.0.103 unstable.

:idiot:

<{POST_SNAPBACK}>

I 'm not that mean,I want to get the working drive letter such as "c:","d:","e:"

ect.

the drivegetlabel only can get the label!

Share this post


Link to post
Share on other sites
yaoyao117

$sysdrive = StringLeft(@WindowsDir, 2)

<{POST_SNAPBACK}>

thank you very much ,I've got the answer .

$workingdrive=stringleft(@workingdir,2);

thank you!

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  

×