Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 12th, 2006, 10:52 AM
SHILOH SHILOH is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 96 SHILOH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 27 m 49 sec
Reputation Power: 3
Exclamation HELP on WSCRIPT

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

Reply With Quote
  #2  
Old July 13th, 2006, 02:28 AM
Nocturns2 Nocturns2 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 60 Nocturns2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 34 m 23 sec
Reputation Power: 3
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")

...

Reply With Quote
  #3  
Old July 13th, 2006, 11:17 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
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

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > HELP on WSCRIPT


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT