Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Windows Relative File in Session

    Help wanted · · · – – – · · ·
    4
    4
    68
    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.
    • Dwayne Roberts
      Dwayne Roberts last edited by

      I want to create a session that points to files using a Windows relative file specification. For example, instead of
      “C:\Users\Dwayne\Chapter 5\Prog.py”
      I’d like to have the session refer to
      “Chapter 5\Prog.py”
      I’ve tried editing the session file this way but to no joy.
      My goal is to share the folder and its subfolders and files with others so that they too can use the session.

      PeterJones 1 Reply Last reply Reply Quote 1
      • PeterJones
        PeterJones @Dwayne Roberts last edited by

        @Dwayne-Roberts ,

        As you may have guessed from the lack of response, I don’t think anyone knows of a way to make that work.

        If you want that feature, you might follow the advice of our feature request FAQ

        1 Reply Last reply Reply Quote 0
        • Terry R
          Terry R last edited by

          @Dwayne-Roberts said in Windows Relative File in Session:

          points to files using a Windows relative file specification

          I haven’t tested this but on my Windows 10 system I run a command prompt and type set and press enter. some system variables pop up as being potentially suitable.
          HOMEDRIVE=C:
          and
          HOMEPATH=\Users\xxxxx
          also
          USERPROFILE=C:\Users\xxxxx

          However there is a caveat, generally the users profile folder is limited to the user named for that profile. So user xxxxx can ONLY access folder C:\Users\xxxxx and user yyyyy can ONLY access folder C:\Users\yyyyy. Neither can access the other, UNLESS they are also administrators. Even then I think Windows will require an override on first attempt (which it remembers).

          My idea would be to use the PUBLIC profile on the PC, see system variable called
          PUBLIC=C:\Users\Public

          As I don’t do “sessions” I haven’t tested anything in NPP to support the usage of system variables.

          Good luck
          Terry

          1 Reply Last reply Reply Quote 0
          • ArkadiuszMichalski
            ArkadiuszMichalski last edited by

            https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5098 << was report.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors