Jeeva
Jeeva

Reputation: 4663

How to determine if a folder is in network path?

I need to write to a folder in network drive, I need to find out if the path is really a netowk drive or local one. Is there any api which can help me to determine that? Please help. I tried with DirectoryExists but it returns true for both network drive and local one.

Upvotes: 1

Views: 2505

Answers (2)

Andy_D
Andy_D

Reputation: 2350

I think you'll find GetDriveType useful.

Upvotes: 3

RRUZ
RRUZ

Reputation: 136391

Try the PathIsNetworkPath function.

Upvotes: 0

Related Questions