Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: g37s
  • Order by date
  1. g37s

    vbscript + shell + output var?

    I need it to output when it does not find any admins. I add that line of code but it seems to output 'no admins' like 15 times! Any way to fix that? Thx again. Code below. Dim oShell, oExec, sLine Set oShell = CreateObject("WScript.Shell") Set oExec = oShell.Exec("%COMSPEC% /c cacls D:\")...
  2. g37s

    vbscript + shell + output var?

    That didn't help me... not sure what I'm looking for really.
  3. g37s

    vbscript + shell + output var?

    I was kind of able to get this command to set the variable. I say kind of because its setting the var twice but the 2nd one is correct. Which kind of works but its sloppy. Anyway after this code I tried to set the variable in vbscript but it does not return anything for %myvar2% MS-DOS...
  4. g37s

    Simple question I guess..

    Thanks it helped!
  5. g37s

    vbscript + shell + output var?

    I created this command in vbscript and output to a file, but really I would like to assign the output to a variable so I can 'If variable = "whatever" then' in my vbscript code. Any ideas? Set objShell = CreateObject("WScript.Shell") strRun = "%comspec% /c cacls C:\ | find ""Domain Admins"" >...
  6. g37s

    Simple question I guess..

    I have this code below that will write a registry value to a file. I want the next line in the code to say if the registry value = 1 then write [PASSED!] if anything else write [FAILED!]. Set WshShell = WScript.CreateObject("WScript.Shell") outfile.writeline "Append parent suffix of the...

Part and Inventory Search

Back
Top