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 3 of 3

Thread: a little help ?

  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    a little help ?

    OK, can anybody see anything wrong with the code below.

    I need to pass through a value that is used as part of a filename and the text that I want this file to contain, its not working though.


    <SCRIPT type="text/vbscript">
    <!--
    function sendalot(sess_id, texttosend)

    dim filenamex

    filenamex = "c:\" & trim(sess_id) & ".sal"

    Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
    Set objTS = objFSO.CreateTextFile(filenamex)
    objTS.WriteLine(texttosend)
    objTS.Close
    Set objTS = Nothing
    Set objFSO = Nothing

    end function
    -->
    </SCRIPT>

    I thought this would be straight forward but its causing me a few problems.

    Thanks

    Steve.

  • #2
    New Coder
    Join Date
    Jan 2003
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hee Hee - I don't think you can have write access to the local harddisk using JavaScript...

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sorted

    its not on the local hard disk its the hard disk on the server.

    Anyway Ive got it working now. sort of.

    Thanks

    Steve.


  •  

    Posting Permissions

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