119

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

TT--
  • 334
Nick Ginanto
  • 1,405

7 Answers7

119

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

Maximus
  • 20,835
46

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

6

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

3

Another solution. Create a task and execute it when ConEmu starts.

Create task, e.g. go to folder D:\exampleDir

You can concatenate commands using &

Task creation - ConEmu

Execute task on startup:

Task on startup - ConEmu

Tonatio
  • 191
1

Another real easy way that worked for me was to open up the Properties of the ConEmu shortcut (in Windows) and then edit the "Start in:" field as shown in the image below.

conemu shortcut properties enter image description here

tinlyx
  • 1,580
ojhurst
  • 111
1

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

/dir %HOMEPATH%

instead of a direct path to your home folder.

garyjohn
  • 36,494
baconator
  • 11
  • 1
1

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

nathanchere
  • 2,396