Jump to content
Sign in to follow this  
Kodiak

Newbie yet excited to find AutoIt-If exist drive letter

Recommended Posts

Kodiak

Hi,

I'm so anxious to get going and feel like a kid in a candy store by having found this app.

I know if I read long enough I'd find the answer but I'm certainly trying to get a script up

fast. I have a guest user that I want to lauch an executable script (already created) via

Group Policy on our AD Network. But the script lives on a network drive mapped to drive "F".

My current script makes the horrendous assumption that drive "F" is already mapped. Therefore

if it's not, I get errors. Just want a sample code line that lets me test if drive "F" exists before continuing,

else give nice message that the requested drive is not available. Fail nicely so to speak.

Thanks. PS - I used the expensive Automate before finding this and I'm really AMAZED at this one.

Also....I'm not having good luck with the Record feature found under "Extra" after install. But that can

be sorted out later. Thank you AutoIt! Awesome!

Respectfully,

Kodiak

Share this post


Link to post
Share on other sites
stormbreaker

Hello, maybe you could try this:

Local $sType = DriveGetType("F:" & "")
If $sType <> "" then
msgbox(64, "", "Drive F: Exists")
else
msgbox(64, "", "Drive F: doesn't exist")
EndIf

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

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  

×