Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19934

    bsmall
    Participant

    Can anyone give me the exact syntax needed to make the – editor.OpenFile( strFileName, nEncoding, nFlags ); – command work.

    Thanks

    #19940

    bsmall
    Participant

    Why does this return “File Not Found”?

    editor.OpenFile( “C:\install.ini”, 0, eeOpenAllowNewWindow);

    If I double click on the file path EmEditor has no problem opening it.

    #19942

    Stefan
    Participant

    JavaScript code???

     
    Try doubling the backshlash as that has a special meaning in JS.
    >>>   “C:\\install.ini”

     
    “C:\install.ini” means: “C:” + “\i” + “nstall.ini”
    “C:\\install.ini” means: “C:” + “\” + “install.ini”

    #19943

    bsmall
    Participant

    Thanks Stefan! That did it!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.