yaoyao117 Posted December 9, 2004 Share Posted December 9, 2004 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 ! Link to comment Share on other sites More sharing options...
MHz Posted December 9, 2004 Share Posted December 9, 2004 Have you tried using DriveGetLabel ? If it is not in your current version of Autoit, then get the latest 3.0.103 unstable. Link to comment Share on other sites More sharing options...
this-is-me Posted December 9, 2004 Share Posted December 9, 2004 $sysdrive = StringLeft(@WindowsDir, 2) Who else would I be? Link to comment Share on other sites More sharing options...
yaoyao117 Posted December 9, 2004 Author Share Posted December 9, 2004 Have you tried using DriveGetLabel ?If it is not in your current version of Autoit, then get the latest 3.0.103 unstable. <{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! Link to comment Share on other sites More sharing options...
yaoyao117 Posted December 9, 2004 Author Share Posted December 9, 2004 $sysdrive = StringLeft(@WindowsDir, 2)<{POST_SNAPBACK}>thank you very much ,I've got the answer .$workingdrive=stringleft(@workingdir,2);thank you! 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