Cmder: alias with && doesn't work

Created on 29 Feb 2016  路  1Comment  路  Source: cmderdev/cmder

I try to use & for an alias in order to execute more than one command
e.g.

位 alias ctest=c: & cd c:test

But get following error

The system cannot find the path specified.

although it's possible to make an entry in config/aliases that also works

Most helpful comment

See #632 -- same issue with the shell handling the & before it gets passed to alias.bat. You can use the doskey equivalent $T here:

alias ctest=c: $T cd c:\test

Note that in this case you can also just use the /D option to tell cd to change drives:

alias ctest=cd /D c:\test

>All comments

See #632 -- same issue with the shell handling the & before it gets passed to alias.bat. You can use the doskey equivalent $T here:

alias ctest=c: $T cd c:\test

Note that in this case you can also just use the /D option to tell cd to change drives:

alias ctest=cd /D c:\test
Was this page helpful?
0 / 5 - 0 ratings

Related issues

luisrudge picture luisrudge  路  3Comments

jenisys picture jenisys  路  3Comments

sathishsoundharajan picture sathishsoundharajan  路  3Comments

GlassGruber picture GlassGruber  路  3Comments

isnullxbh picture isnullxbh  路  3Comments