Skip to content

trying to execute powershell in current directory #874

@xmtdeicide

Description

@xmtdeicide

hi, need help runing powershell in the current directory tab, im using the %Focused% variable but cant do it right..

i make a new item and EXEC this..

powershell.exe -noexit -command "cd %Focused%"

cant make it work :(

i have a portable tablacus version, maybe enviorement variables are not set?

------- already fixed! -------

it was %current%, not %focused%.. :)

working perfect now!

powershell -Command "Set-Location '%current%'; [System.IO.Directory]::SetCurrentDirectory('%current%'); $Host.UI.RawUI.WindowTitle = 'PS $PWD'; powershell"

and for CMD console use:
cmd /k cd /d "%current%"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions