Hi All,
I'm fairly new to this VB scripting and am having a problem with this little piece of code.
Basically I want to run IPCONFIG /ALL to a file and then read the file.
It runs IP config, but wont output to a file.
Any help would be really appreciated
ModeX
SCRIPT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dim fso, sh, r, s, pe
Set sh = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
'--run a program: -------------------
sh.run "C:\windows\system32\ipconfig.exe /all > c:\ipconfig.txt"
sh.Run "C:\windows\notepad.exe c:\ipconfig.txt", 1, false
END OF SCRIPT >>>>>>>>>>>>>>>>>>>>>>>>
I'm fairly new to this VB scripting and am having a problem with this little piece of code.
Basically I want to run IPCONFIG /ALL to a file and then read the file.
It runs IP config, but wont output to a file.
Any help would be really appreciated
ModeX
SCRIPT >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dim fso, sh, r, s, pe
Set sh = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
'--run a program: -------------------
sh.run "C:\windows\system32\ipconfig.exe /all > c:\ipconfig.txt"
sh.Run "C:\windows\notepad.exe c:\ipconfig.txt", 1, false
END OF SCRIPT >>>>>>>>>>>>>>>>>>>>>>>>