Results 1 to 2 of 2

Thread: Using VB to run a WSH script

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Midwest
    Posts
    35

    Exclamation

    I have written a WSH script that maps and unmaps network drives and I would like to use VB to run these scripts. Please provide suggestions on how to run it. Thanks.

    Code:
    Filenames
    netconnect.vbs
    netdisconnect.vbs
    [Edited by kbea1965 on 11-22-2000 at 11:06 AM]

  2. #2

    Thread Starter
    Member
    Join Date
    Sep 2000
    Location
    Midwest
    Posts
    35

    The code

    I'm using the following code to import the Wscript file.

    Code:
         Dim fsoMap As FileSystemObject
         Dim filMapDrive As String
        
         Set fsoMap = CreateObject("scripting.filesystemobject")
         filMapDrive = fsoMap.GetFile("c:\netconnect.vbs")
    I'm stuck! HELP!

    [Edited by kbea1965 on 11-22-2000 at 11:07 AM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width