spyrospappas
Programmer
So I have this problem.
I use "%comspec% /C net view >c:\temp.txt" via "WScript.CreateObject("WScript.Shell")" command.
I run the command. The file is created but nothing is in.
No errors.
If i use "ipconfig or dir etc" at the place of "net view" everything works fine.
Looks like "net" commands run but cant be echoed to a file.
When i run the command directly from the command line everything works fine.(File is created, data in file)
What is the problem?
I think that file is created with out waiting for "net view" command to end.
what should i do?