Community
    • Login

    Todays Stupid Question....command line

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 843 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          Graham Wickens
          last edited by

          Yes, that did it, many thanks

          1 Reply Last reply Reply Quote 1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors