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 TouchToneTommy 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: LeighTT
  • Content: Threads
  • Order by date
  1. LeighTT

    Object status fails with REG.EXE

    When I run the following command the status always remains 0 and program hangs. This only occurs on Windows XP machines running the REG.EXE program, ok on NT4 set oExec = objshell.exec ("reg query ""Hklm\software\microsoft\windows nt\CurrentVersion""") do while oExec.status = 0 wscript.sleep...
  2. LeighTT

    redirecting stdout using run command

    I'm having trouble capturing stdout from the run command using script below any ideas???? const ForAppending = 8, forwriting = 2 Set objShell=CreateObject("WScript.Shell") Set objfso=CreateObject("Scripting.FileSystemObject") set stdout = wscript.stdout Set X = objshell.run ("%comspec% /c...
  3. LeighTT

    Files Exist

    I have a script that runs a net use command to remote workstations Admin$. Once the Net use authentication takes place I need to confirm I have access to files within the share. If I were using shell script I would run the following command. If file Exists \\Workstation\admin\*.* However as...
  4. LeighTT

    Ras users

    I'm looking to run a logon script that detects whether the user is connected via RAS before commencing. Is there a VBSCript command that I can run for this. Note the check will be for windows 9.X and 2000
  5. LeighTT

    Folder size

    I have written as script that checks the last accessed date and and size of shares on a server. This works fine on servers with fairly small share'd area's. The problem I have is with large dept shares that maybe 50GB plus. I,m using the Getfolder command as below to accertain the size Set f =...
  6. LeighTT

    array out of range

    I am new to Vbscript and have come up against a problem using an array to split a string. The error is (subscript out of range). The error occurs after reading the 10th line of text. I have been looking at ways to destroy and recreate the array before looping back but cannot see a way to do this...

Part and Inventory Search

Back
Top