1.    03 Mar 2016 #1
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,372
    Windows 10 Pro X64 16299.19

    Make Elevated Command Prompt open to %userprofile%


    I have the Command Prompt icon on my Taskbar as I use it a lot. It's set to always run as Administrator, so when I launch it, the Command Prompt window opens to C:\Windows\system32.

    I want it to open to %userprofile% which is C:\Users\myaccountname.

    Has anyone found a way to do this. Using the Start in filed of properties doesn't work.
      My ComputersSystem Spec
  2.    03 Mar 2016 #2
    Join Date : Oct 2013
    Posts : 25,726
    64-bit Windows 10 Pro build 17046

    Hello Rich,

    You could create a shortcut using the command below, then set the shortcut to "Run as administrator" to do so.

    cmd /s /k cd %UserProfile%

    Run as Administrator in Windows 10 - Windows 10 Forums
      My ComputersSystem Spec
  3.    04 Mar 2016 #3
    Join Date : Jun 2015
    Posts : 1,929
    Windows 3.1 to Windows 10

    I want it to open to %userprofile% which is C:\Users\myaccountname.
    That would be a standard command prompt (non-admin)
      My ComputerSystem Spec
  4.    04 Mar 2016 #4
    Join Date : Feb 2014
    Posts : 9,476
    Windows 10 Professional

    WinX Menu, #9
      My ComputersSystem Spec
  5.    04 Mar 2016 #5
    Join Date : Oct 2013
    Posts : 25,726
    64-bit Windows 10 Pro build 17046

    I believe Rich is wanting to open an elevated command prompt, but have it open to %UserProfile% instead of the default System32.
      My ComputersSystem Spec
  6.    04 Mar 2016 #6
    Join Date : Jul 2015
    California
    Posts : 203
    Kernel 4.x.x

    Edit:

    Better method

    Modify the shortcut target to:
    Code:
    %COMSPEC% /C PUSHD %USERPROFILE% && %COMSPEC%
    That should work
      My ComputersSystem Spec
  7.    04 Mar 2016 #7
    Join Date : Jul 2014
    San Jose, California
    Posts : 2,196
    Ubuntu14.04x64 MintMate17x64 Win10Prox64

    You asked the same question and was answered 6 months ago:
    Solved Get elevated command prompt to open in my user directory - Windows 10 Forums
      My ComputerSystem Spec
  8.    04 Mar 2016 #8
    Join Date : Apr 2014
    Space coast of Florida
    Posts : 5,372
    Windows 10 Pro X64 16299.19
    Thread Starter

    Quote Originally Posted by topgundcp View Post
    You asked the same question and was answered 6 months ago:
    Solved Get elevated command prompt to open in my user directory - Windows 10 Forums
    Sorry, my mind isn't what it used to be I guess. I had completely forgotten about that thread.

    I saved info from both threads this time and now have a working Admin Command prompt that opens to my user profile folder.

    Thanks everyone.

    Hydranix, I haven't tried your suggestion yet, will in a few minutes though.

    Edit: Hydranix, yes, this works well also. Thanks
      My ComputersSystem Spec
  9.    04 Mar 2016 #9
    Join Date : Oct 2013
    Posts : 25,726
    64-bit Windows 10 Pro build 17046

    No worries Rich. Glad we could help.
      My ComputersSystem Spec

 


Similar Threads
Thread Forum
Command Prompt won't open
Hi, whenever I try to open the Command Prompt in Win10 (cmd.exe) I get the following pop up: cmd.exe - Application Error The Application was unable to staart correctly (0XCoooo142). Click OK to close the application. I should add this was an...
General Support
General Tips Open Command Prompt in Windows 10
How to Open a Command Prompt in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows...
Tutorials
General Tips Open Elevated Command Prompt in Windows 10
How to Open an Elevated Command Prompt in Windows 10 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands in an elevated command prompt, you can perform tasks that require...
Tutorials
I can not open command prompt.
I can not open command prompt. Every time I open it I got error message come up. :( The message is said http://i.imgur.com/HZi67df.jpg
General Support
Solved Get elevated command prompt to open in my user directory
I changed Command Prompt on my Taskbar so when I click on it, it opens as Administrator. That sets the default directory as C:\WINDOWS\system32 which I don't like, since any files I create that do not have a path specified will be created there. ...
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:37.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums