General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only