Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find share name of a disk programmatically?
Message
From
13/04/2004 20:45:13
 
 
To
13/04/2004 19:57:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00894627
Message ID:
00894635
Views:
7
Check this out:

oFSO = CREATEOBJECT( "Scripting.FileSystemObject" )

This object has a lot of stuff in it, including getting all the drives and their sharenames.

Dennis

>In order to create a simple to use backup program for SQL data, I'd like to pass the SQL Server (SQLDMO.Backup) the name of a directory in the calling computer where the backup file should go. This should be in the form \\MachineName\DiskShareName\DirName.
>
>I pressume that GETENV('COMPUTERNAME') will return the machine name.
>How can I get the share name of a disk programmatically? Bear in mind that in our case it is usually changed and not "C".
>
>Thanks you very much.
>
>Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform