|
-
Apr 18th, 2003, 11:28 AM
#5
Frenzied Member
Have you tried using the registry? In Windows 95, 98, and Millenium, there is the following key:
HKLM\Security\Access\
And each sub key under this key represents a shared folder. Since I don't have these OSs, I can't give you more info on this one.
In other Windows OSs, the key is:
HKLM\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares\
And each value in this key represents a shared folder. The data for each value contains the actual path, as in "Path=c:\data\databases".
So, you could loop through each key/value (depending on OS) and look for the one that contains the path to the database. To get the actual share, just add the computer name to the front. To get the computername, you can do Environ("%computername%).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|