Substituting Drive letters 
Author Message
 Substituting Drive letters

Substituting Drive lettersVirtually any command that can be
successfully run from a command line ,Start/Run, shortcut or batch
file can be run in WSH by using the Run method of the Wscript.Shell

Dim Shell
Set Shell = CreateObject("Wscript.Shell")
Shell.Run "subst y: h\%username%",0,True

In the log in scripts I wrote for work I do this in dos:
subst y: h:\%username%
How can I mimic that in Windows Scripts Host?

Sat, 21 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