Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do I change ConEmu settings such that always when I open it, it will start the cmd as a directory of my chooseing instead of the concmu folder?

share|improve this question

5 Answers 5

up vote 51 down vote accepted

In addition to the answer by Bruno Pereira.

1) Another way - create new task with "cmd" in Commands (if not already created) and add following into "Gui args" field of task properties, and choose this task on startup page (radio "Specified named task")

/dir "FullPathToDir"

enter image description here enter image description here

2) One more example - run shell like (Startup -> Command line)

cmd "-cur_console:d:C:\Users\Maks"

enter image description here

share|improve this answer
    
the problem is that tasks don't run when I start conemu. –  Nick Ginanto Oct 2 '12 at 9:57
2  
Not true. You may choose any named task for startup on "Startup" page. –  Maximus Oct 2 '12 at 10:26
    
I get a command group is empty! error when I add the /dir PATH to task parameters –  Nick Ginanto Oct 2 '12 at 10:40
    
So? You get a message from program. Why not to make it "not empty"? Add "cmd" to the task command. PS. If message is not clear - suggest your own text. –  Maximus Oct 2 '12 at 11:21
2  
Second approach is much better as it's simpler and doesn't open PowerShell! –  Piotr Sobczyk Apr 28 '13 at 18:30

The /dir thing didn't work for me with Powershell. I ended up putting the command as powershell.exe -noexit D:\MyDocs like so:

Powershell with default directory

and then set that to be the Startup task as already demonstrated in Maximus' answer:

No

share|improve this answer

In the task window, as in the top answer, use the following:

/dir %HOMEPATH%

instead of a direct path to your home folder.

share|improve this answer

Open settings:

  1. Startup/Tasks
  2. Create new task
  3. In the first box put a name, e.g. Console
  4. In the third box copy this: C:\Windows\System32\cmd.exe -cur_console:d:D:/
  5. Go to Startup and select the task from the "specified named task" menu.

Restart

share|improve this answer
    
how do I write a folder path which contains space? –  Nick Ginanto Feb 23 '13 at 15:39
    
have you tried to quote the path with " ? –  user201747 Feb 23 '13 at 15:47

Just edit your startup shortcut adding the /Dir option as such:

ConEmu /Dir <path to desired directory>

Or on the shortcut properties change the Start in: path to something that fancies you

enter image description here

share|improve this answer
    
I don't know why the above one has more upvotes. This is the correct way to change the "default" start directory, as requested. This will apply to all tasks started in that ConEmu instance. –  ELLIOTTCABLE Jun 8 at 23:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.