Substituting Drive Letters 
Author Message
 Substituting Drive Letters


> How can I use a command like subst y: k:\%username%

> in Windows Script Host?

See the WSH documentation for MapNetworkDrive method.  

From the help:

The following example shows how to map the "Z" drive to a network share:

  Set WshNetwork = WScript.CreateObject("WScript.Network")
  WshNetwork.MapNetworkDrive "Z:", "\\Server\Share"

Tom Lavedas
http://www.*-*-*.com/ ~tglbatch/

Sun, 22 Sep 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Substituting Drive Letters

2. Substituting Drive letters

3. drive letter

4. Newby: Determine CD-ROM drive letter

5. Change CD-ROM Drive Letter

6. logon script to check the next available drive letter (The code is a bit long)

7. Multiple groups drive letter mapping? (newbie question)

8. VBScript for mapping drive letters

9. next available drive letter

10. Retrieving drive letters and paths on a CD using client side VBScript

11. Set/Change CD-ROM drive letter with VBS

12. drive letter


Powered by phpBB® Forum Software