Sign in to follow this  
Followers 0
ericbailey2

Check if drive exists

6 posts in this topic

I did a search and came up with topics about if a file exists, but I need to know wether or not a specific drive exists.

Share this post


Link to post
Share on other sites



I guess, i could check to see if a file on that drive exists, however... the contents to the drives are not all the same.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

If Not FileExists("A:\") Then
    ConsoleWrite("Not Exist")
Else
    ConsoleWrite("wtf")
EndIf
Edited by Generator

Share this post


Link to post
Share on other sites

Well thank you, I should have experimented first. I appologize if I wasted your time.

Share this post


Link to post
Share on other sites

To add to my complexity I need to check if a drive exists on a pc over a LAN.

Is this possible with an IP address?

I need to transfer files from one pc to the next

Share this post


Link to post
Share on other sites

If you are transferring files over network shares, you can just verify the mapped drive exists.

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  
Followers 0