Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2009
    Posts
    264
    Thanks
    24
    Thanked 1 Time in 1 Post

    help: how to use vbs in webpage

    hi everybody

    could someone please tell me how to use this in webpage?

    Code:
    dim loggit_logfilename, loggit_fso, loggit_silent
    
    loggit_logfilename = ".\exec.log"
    loggit_silent = true   ' log file only or with MsgBox/Echo
    set loggit_fso = CreateObject("Scripting.FileSystemObject")
    
    
    loggit "Started..."
    
    loggit "Done."
    
    ' -=-=-=-=-=-=-=-=-=-
    sub loggit (msg)
        set stream = loggit_fso.OpenTextFile(loggit_logfilename, 8, True)
        stream.writeline date & " " & time & ": " & msg
        stream.close
        if not loggit_silent then
           WScript.echo msg 
        end if   
    end sub
    thanks!

    ~Shadow~

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    As a client side or server side thing?

    If it is the client side, you don't want to unless your audience is in a very controlled environment. VBScript as a client side scripting language is only supported in Internet Explorer.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •