Skip to content

How to get the future pwd from a profile script? #10568

@HR42

Description

@HR42

I want to start a PS shell from the explorer context menu on different folders.
At PS startup a tool should be configured with the actual folder path.
I have tried a init / profile script for this purpose, but the pwd of the script is not the folder path: I get C:\WINDOWS\System32.
I have also checked variables but non of the available values is set to the (future) folder path.
How can I get the folder path in this case?
After the shell is started the correct folder path is available with pwd but this is to late for my purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Maintainers-Buildspecific to affecting the buildIssue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or more

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions