First instal ASP on your WebSite Server!
![]()
![]() |
Download WebJam...HEREWhen you download the ".ZIP" file,
|
|
|
|
||
![]() |
Create a "WebJam" directory
|
|
|
|
||
![]() |
Next, place
|
|
|
|
||
![]() |
Now select START
|
|
|
|
||
![]() |
You will see:"DllRegisterServer in webjam.dll succeeded"Open Control Panels/Services and
|
|
|
|
||
![]() |
Now create a MAPPING in the WebSite
|
|
|
|
||
![]() |
Press the ADD button
|
|
|
|
||
![]() |
Now select the MAPPING you
|
|
|
|
||
![]() |
Next,
|
|
|
|
||
![]() |
Select:
|
|
|
|
||
![]() |
Now,
|
|
|
|
||
There are actually a few ways you can use the WebJam routines. First, assuming
you installed to your web_root/webjam directory as per the installation
instructions, and you plan on making extensive use of the WebJam routines, then
you can just add this line to the top of your .asp file(s):<!--#include virtual="/webjam/webjam.inc"-->Alternatively, if you're going to use just a few specific routines, for file I/O, textfile manipulation, and string-parsing for example, then you can include just the applicable files, like: <!--#include virtual="/webjam/wjio.inc"--> <!--#include virtual="/webjam/wjtextfile.inc"--> <!--#include virtual="/webjam/wjstring.inc"-->The third method is to delve deeper and interface with the various classes in WebJam.dll manually yourself. If you wish to do this, it is recommended that you examine the code in the various include files to see how the VBScript wrappers in the include files do so. The first two approaches are the easiest and are the methods I recommend in almost all situations. There is one situation where you will wish to manually call one of the classes in WebJam.dll and that is if you need to get a directory listing from a directory. To do this, you need to first create a WebJam.wjIO object, call GetDir with a pathspec, then call GetDir repeatedly without a pathspec until it returns an empty string, then destroy the WebJam.wjIO object. For example, the following code will list all files in the root directory of drive C: <!--#include virtual="/webjam/wjcore.inc"--> <!--#include virtual="/webjam/wjhtml.inc"--> <!--#include virtual="/webjam/wjio.inc"-->
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
SUB ListBootRoot
Dim SO
Dim S
SO=Server.CreateObject("WebJam.wjIO")
S = SO.GetDir("c:\*.*")
WHILE (Len(S)>0)
Send(S & "<BR>")
S = SO.GetDir
WEND
SET SO=Nothing
END SUB
SendHeader "Test", "", ""
ListBootRoot
SendFooter
</SCRIPT>
|
|