|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
system call in vbscripts--HELP!!!
Hi, All,
I want to do a system call such as " net view ip_addr" in vbscript. How could I do there? I search some, but not so helpful. could you give me some advice? Thanks. |
|
#2
|
|||
|
|||
|
look at the wscript.shell component of the windows script host.
|
|
#3
|
|||
|
|||
|
U can use wsh object like it:
[run.vbs] Dim WSHShell Set WSHShell = WScript.CreateObject("WScript.Shell") ' open maximized and wait WSHShell.Run "notepad.exe", 3, true ' open minimized and wait WSHShell.Run "notepad.exe", 2, true ' open normal and don't wait WSHShell.Run "notepad.exe", 1, false Set WSHShell = Nothing WScript.Quit(0) |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > system call in vbscripts--HELP!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|