1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SaveAs help Using textbox as Filename

Discussion in 'HTML & Website Design' started by lbenn, Dec 6, 2008.

  1. #1
    Howdy!.

    SaveAs help Using textbox as Filename "path' e.c 'newfile1.txt'

    I'm using the new ActiveXObject("Scripting.FileSystemObject")
    I have on my local Machine newfile1.txt, newfile2.txt, .......newfile10.txt
    I been tring to change the SaveAs filename using a textbox.
    <e.g>

    <input type='text' id='filename' value='Newfile1.txt' />

    Original Source:
    var s = fso.CreateTextFile("C:\\NewFile.txt", true);

    None of these worked?

    My Source1:
    var s = fso.CreateTextFile("+'filename.value'+", true);

    My Source2:
    var s = fso.CreateTextFile("+filename.value+", true);

    My Source3:
    var s = fso.CreateTextFile(\"+filename.value+\", true);

    How can I SaveAs using the textbox. filename.value...
    How do I format the filename.value properly to saveAs. ("C - ('+filename ??
    I will be changing the name in this 'textbox' any help
    greatly Aprechiated!
     
    lbenn, Dec 6, 2008 IP