[RESOLVED] ASP, VB Script
Okay, so this forum is named "ASP, VB Script". My question is, how do an asp file and a vbs file usually interact?
I am working on email triggers. I am maintaining an ASP application and migrating it to .NET. The trigger functionality doesn't work too well in ASP which makes my job a little bit difficult, not to mention there is no documentation and I get emails like this from the original programmer:
in any event the triggers fro resales which i can't recall what it is is pretty much the trigger code to run each night. you can probably get it into a compiled from easily and make it work with even the existing trigger setup with some mode i'm sure.
:confused:
But he did point me to the directory structure containing two files, Send_Nightly_Triggers.asp and Send_Nightly_Triggers.vbs. So my question is, how do these two files interact? For example, I searched for Select_NYMEX_Averages and I found this in both files:
(asp)
Line 40 : Call Select_NYMEX_Averages()
Line 88 : Sub Select_NYMEX_Averages()
(vbs)
Line 75 : Call Select_NYMEX_Averages()
Line 123 : Sub Select_NYMEX_Averages()
How do I start walking through this code - with the vbs or the asp? Which one runs first? What else do I need to know about this architecture?
Thanks - I know I'll get more help on this forum than I would talking to anyone that works for my company!
Re: [RESOLVED] ASP, VB Script
VBScript is actually pretty easy to debug. At the command line type something like this
wscript "C:\Documents and Settings\Mark\script_name.vbs" //d //x
This tells the windows script host to run this scirpt in debug mode and break on the first line of code. You can then step through the code and see what you have.
Re: [RESOLVED] ASP, VB Script
Oh, thanks. I am working with VBS some more right now. Most of the scripts are scheduled tasks and I get no error there. When I run it from a command prompt I get the error (it's a dialog). Your way will be even more useful.
Re: [RESOLVED] ASP, VB Script
If you are running 64-bit make sure you are using the correct scripting host. Also try /? to make sure that that d and x are still the correct parameters.
Re: [RESOLVED] ASP, VB Script
Quote:
Originally Posted by
MarkT
make sure you are using the correct scripting host
Yes! I learned that the hard way!