|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hello
I have been creating wscript for IIS installation and also creating new virtual directory. What I am in need is of wscript for installing or registering aspnet_regiis. This is the command I would like to use in the wscript but how can it be done? I know it needs Set oShell = CreateObject("WScript.Shell") But this is command I wish to run : C:\Windows\Microsoft.Net\Framework\<version>\aspnet_regiis.exe -i Then I will be saving it as *.vbs An example will be most helpful and appreciated. Thanks |
|
#2
|
|||
|
|||
|
will this work?
Code:
dim oRunMyCmd
dim oShell
Set oShell = CreateObject("WScript.Shell")
set oRunMyCmd = oShell.Exec("C:\Windows\Microsoft.Net\Framework\<version>\aspnet_regiis.exe -i")
...
or run it in a new process Code:
dim oShell
Set oShell = CreateObject("WScript.Shell")
oShell.run "cmd /C C:\Windows\Microsoft.Net\Framework\<version>\aspnet_regiis.exe -i")
...
|
|
#3
|
|||
|
|||
|
Windows IT Pro magazine had an article full of IIS admin scripts a few months ago, you may find something helpful there if you can dig up the article.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > HELP on WSCRIPT |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|