First instal ASP on your WebSite Server!

 

Download WebJam...

HERE

When you download the ".ZIP" file,
You will have all the files you need
including 2 files:

(WebJam.dll and MSINET.OCX)

that should go into
your "winnt/system32/" directory.

 

 

 

 

Create a "WebJam" directory
under your "root"
(usually c:\website\htdocs\)

 

 

Next, place

WebJam.dll and MSINET.OCX
winnt/system32/" directory.

 

 

Now select START
Then RUN

and TYPE:

RegSvr32 webjam.dll

 

 

You will see:

"DllRegisterServer in webjam.dll succeeded"

Open Control Panels/Services and
double-click the web server. Make sure the service is set to be allowed to interact with desktop.

 

 

Now create a MAPPING in the WebSite
configuration administrator by typing:

"/webjam/"

in the DOCUMENT URL PATH box.

Then use the BROWSE button
to associate it with:

"C:\WebSite\htdocs\webjam"

 

 

Press the ADD button
then the APPLY button.

 

 

Now select the MAPPING you
just created and then click the

ASP APPLICATION ROOT box.

Then click the REPLACE button,
then the APPLY button.

 

 

Next,
Switch over to Access Control
by clicking the
ACCESS CONTROL tab.

Click NEW and type:

"/webjam/" and click OK

 

 

Select:
"/webjam" in the

URL PATH or SPECIAL FUNCTION
box

and click the:

RUN IN NT USER CONTEXTS box

 

 

Now,
Open your web browser and
view:

http://<your_domain>/webjam/docs/default.asp

to peruse the online
documentation.

 

If you don't have the VB5 runtime DLL installed, get it. One place you can get it is from download.com.

 

 

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>