Community
    • Login

    Todays Stupid Question....command line

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 627 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Graham WickensG
      Graham Wickens
      last edited by

      I am trying to start notepad++ from within my database app with the following syntax

      sys_shell_wait(“notepad++.exe -openSession <c:\my databases\aviation\txt\CurrentLog.txt>”,.T.)

      Notepad++ opens but says "cant find the “CurrentLog.Txt” file. It is where I say it is!!
      Am I missing something here?

      Meta ChuhM 1 Reply Last reply Reply Quote 1
      • Meta ChuhM
        Meta Chuh moderator @Graham Wickens
        last edited by Meta Chuh

        @Graham-Wickens

        -openSession is only used for opening [sessionname].xml files that were saved with file > save session

        a saved session file is not a document itself, but a list of tabs/files that were opened, when you saved this “session” to a file.

        the correct way to open notepad++ and one specific file is:
        "path_to_your\notepad++.exe" "c:\my databases\aviation\txt\CurrentLog.txt"

        i don’t know your database app syntax for opening a program plus one argument value, but looking at your template it could be something like:
        sys_shell_wait("path_to_your\notepad++.exe", "c:\my databases\aviation\txt\CurrentLog.txt",.T.)
        although i don’t know what the ,.T. would stand for.

        or if only one command without additional argv’s is allowed, you might need to “escape” double quotes in double quotes with a \:
        sys_shell_wait("\"path_to_your\notepad++.exe\" \"c:\my databases\aviation\txt\CurrentLog.txt\"",.T.)

        1 Reply Last reply Reply Quote 3
        • Graham WickensG
          Graham Wickens
          last edited by

          Yes, that did it, many thanks

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors