I
I
IceR0ck2017-05-24 11:24:08
PowerShell
IceR0ck, 2017-05-24 11:24:08

How to open PowerShell in C: folder?

Hello, how can I configure Cmd or PowerShell to open in C:\ instead of C:\Windows\system32? is it possible to pass arguments to this program? For example, when a browser is launched, a certain page opens, through an additional argument after the path to the
PS shortcut On the mouse, 2 additional buttons are idle, 1 is configured for TaskView, and the other would like under PowerShell to open the C:\ folder

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
azarij, 2017-05-24
@IceR0ck

if the buttons support assigning a shortcut to them, then create a shortcut to powershell.exe and then set C: \ as a working folder in the shortcut properties. works on win10.

R
res2001, 2017-05-24
@res2001

1. You can set up launch shortcuts with the desired current directory.
2. When starting cmd, you can set the command to go to the desired directory.
cmd /?
I think that the same can be done in PS.

D
Denis, 2017-05-24
@denilenko

Register the directory change in the profile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question