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 September 16th, 2007, 12:05 PM
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 VBScript - Help required on VBS please

Hello

I am in need of some assistance and help on this please.
I have been required to write a vbscript to run asynchronously(I take it that means to run in the background). I am not fluently familiar with the language.

As in the original ASP, we have includes files, most of the includes file are ASP.

How is it done in VBScript to include an asp file?? An example would be appreciated.

If so, how do you map the file path as most of the include files usually have this : - ../test/test.asp

As it has to run asynchronously, how is it possible to finish the running of the script when it has inserted all the data into the database?? An example would be appreciated.

How do you make the VBScript to run in the background silent and only overnight??

On ASP, how is it possible to call the vbscript and pass parameters in for example an ID, or a number into it.

It would be an immense help if anyone could show me how this is done and I would be grateful as well.

Thanks
Newbie

Reply With Quote
  #2  
Old September 17th, 2007, 08:17 AM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,048 Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Days 12 h 32 m 33 sec
Reputation Power: 555
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
I've written articles for all of those. Let me put together some links.
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #3  
Old September 17th, 2007, 11:18 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 required on VBS please

Hi

To recapture this, I need to create a vbscript that has to run asynchronously in the background overnight. The vbscript has to insert data (large volume) to the database.

I realised that VBScript can't include an ASP page, so I have converted most of the include files into vbs and use ExecuteGlobal to include them in.

Then on the Classic ASP, I have button that should call the VBScript file, passing the ID, UserID, as they are dynamic. So I am not sure how to pass parameters to a script using arguments. How is this done?

I have created this code in ASP, although I keep getting permission denied. I have ISUSER and IWAM do have full control. In IIS, the executable permission is set to "scripts only".

Dim WshShell,intReturn
Set WshShell = Server.CreateObject("WScript.Shell")
a= "c:\inetpub\wwwroot\test\test.vbs"
a = a & " " & ID & " " & UBound(aryUsers,2)
intReturn = WshShell.Run("%comspec% /c cscript " & a, 0, True)
Response.Write(intReturn)
Set WshShell = Nothing

As it has to run asynchronously, how is it possible to run the script asynchronously?? An example would be appreciated.

It would be an immense help if anyone could show me how this is done and I would be grateful as well.

Thanks
Newbie

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > VBScript - Help required on VBS please


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 5 hosted by Hostway
Stay green...Green IT