|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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! |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > VBScript - Help required on VBS please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|