locked
how to know the path where a file is saved using a saveAs dialogue (using exec.command(saveAs)) RRS feed

  • Question

  •  

    hi all,

    my problem is that i want to create file(on his hard disk) with the name the user has entered in a text box and write some data to it.

    problems i faced
    1. i dont know the path where he has saved the file (if i use execCommand.)
    2. even if a file is created , the html is saved in it.

    so, if i know where the file is saved i can change its contents or if there is some other method by which i can do it.

    or


    if theres a way ,i want to know if there is any to open a saveAs dialog without using execCommand.

     


    please help....

    Monday, January 28, 2008 12:55 PM

All replies

  • This is not generally a safe thing for a browser to be allowed to do.

     

    Are you building a HTA?  If so you may be able to use Scripting.FileSystemObject to achieve your goals.

     

     

    Thursday, March 13, 2008 2:03 PM