Jump to content

Odd issue with Windows 2000 and comspec


fly
 Share

Recommended Posts

okay, i have designed a GUI that will display all the machines on our network. To do this, I run:

$iRunWaitCW1 = RunWait(@ComSpec & " /c " & 'net view > %temp%\pclist.txt', "", @SW_HIDE)

On Windows 2000, it fails with a return code of 2, but only the first time. If I hit my 'scan' button a 2nd time, things work as planned. If I run the same command from a command prompt, it works the first time and every time.

What am I doing wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...