start command conflict - Windows vs MSys

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
kamil
Posts: 24
Joined: Fri 13 Apr, 2012 19:19

start command conflict - Windows vs MSys

Post by kamil » Thu 19 Oct, 2017 09:41

Ever since I installed MSys, and it has a script that is called start, I can no longer use my F2-v menu shortcut to launch Visual Studio's shell:
start %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat""

Now whenever I press F2-v, I get a Windows pop-up "Choose the program you want to use to open this file / File: start"

Any ideas how to fix it, so I could have both MSys and my F2-v working from within Far?

User avatar
DrKnS
Posts: 4895
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 4 times
Been thanked: 159 times

start command conflict - Windows vs MSys

Post by DrKnS » Thu 19 Oct, 2017 10:21

Add %comspec% /c to the front of your command or add start to system.executor.excludecmds in far:config.

kamil
Posts: 24
Joined: Fri 13 Apr, 2012 19:19

start command conflict - Windows vs MSys

Post by kamil » Thu 19 Oct, 2017 16:43

thank you - that's very helpful.

%comspec% /c works just fine for me.
but just out of curiosity, how do I open/edit far:config?
Last edited by kamil on Thu 19 Oct, 2017 16:44, edited 1 time in total.

User avatar
HaRT
Moderator
Posts: 8429
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 73 times
Been thanked: 131 times

start command conflict - Windows vs MSys

Post by HaRT » Thu 19 Oct, 2017 16:58

kamil wrote:
Thu 19 Oct, 2017 16:43
how do I open/edit far:config?
Just run far:config from the FAR command line.
Фар есть инструмент, а не нянька. © 2009 DrKnS

kamil
Posts: 24
Joined: Fri 13 Apr, 2012 19:19

start command conflict - Windows vs MSys

Post by kamil » Thu 19 Oct, 2017 17:51

thank you.

but I don't see system.executor.excludecmds there.

Image

User avatar
John Doe
Бюрократ
Posts: 11819
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 26 times
Been thanked: 129 times

start command conflict - Windows vs MSys

Post by John Doe » Thu 19 Oct, 2017 18:15


User avatar
HaRT
Moderator
Posts: 8429
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 73 times
Been thanked: 131 times

start command conflict - Windows vs MSys

Post by HaRT » Thu 19 Oct, 2017 18:37

kamil wrote:
Thu 19 Oct, 2017 17:51
I don't see system.executor.excludecmds there
Use menu filtering: Press CtrlAltF then type exclude.
Фар есть инструмент, а не нянька. © 2009 DrKnS

kamil
Posts: 24
Joined: Fri 13 Apr, 2012 19:19

start command conflict - Windows vs MSys

Post by kamil » Thu 19 Oct, 2017 20:21

HaRT wrote:
Thu 19 Oct, 2017 18:37
kamil wrote:
Thu 19 Oct, 2017 17:51
I don't see system.executor.excludecmds there
Use menu filtering: Press CtrlAltF then type exclude.
great - thanks

Post Reply

Return to “Support and Troubleshooting”