VBS interact with html or JS?

Discussion in 'Web Design & Coding' started by Angel333, Mar 7, 2003.

  1. Angel333

    Angel333 Guest

    I've got this Code to check if Recycle bin is Full...
    How can I react between vbs and html?
    It would be good if I can give the result to javascript...
    Or just print out anything in html (i.e.: "Full Trash")

    Code:
    set shell = CreateObject("Shell.Application")
    set fs = CreateObject("Scripting.FileSystemObject")
    set WSHShell = CreateObject("WScript.Shell")
    
    set folderobject = shell.NameSpace(10)
    inhalt = folderobject.Items.Count
    
    if inhalt = 0 then
    MSGBOX( "Empty")
    else
    MSGBOX("Full")
    end if
    
    wscript.quit
    I don't want the message Boxes...
    Any Ideas?
     
  2. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    Just replace the MSGBOX row with the print function in VBS. Whatever it's called. :)
     
  3. Angel333

    Angel333 Guest

    I tried that...
    Didn't found a command...

    So do you know how to do?
     
  4. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    A very quick search on Google revealed:

    PHP:
    document.write("Whatever you want to print.")