Results 1 to 2 of 2

Thread: help with vbscript

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2012
    Posts
    1

    help with vbscript

    i'm trying to create folders on multiple remote computers with vbscript. i have a list of computer names and on each computer i want to do this:
    Code:
    strComputer = "" 
        Set objWMIService = GetObject _
    ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process")
        errReturn = objWMIService.Create _
    ("cmd.exe /c md c:\newfolder", Null, Null, intProcessID)

  2. #2
    Addicted Member
    Join Date
    Jul 2009
    Posts
    208

    Re: help with vbscript

    Great thread title!

    Read each strComputer from the list in a loop using FSO OpenTextFile and ReadLine. Please search these terms if you need more information.

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