start command conflict - Windows vs MSys

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

start command conflict - Windows vs MSys

Post by kamil »

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: 6114
Joined: Thu 04 Aug, 2005 06:44
Location: Kyiv
Has thanked: 12 times
Been thanked: 426 times

start command conflict - Windows vs MSys

Post by DrKnS »

Add %comspec% /c to the front of your command or add start to system.executor.excludecmds in far:config.
kamil
Posts: 44
Joined: Fri 13 Apr, 2012 19:19
Has thanked: 8 times

start command conflict - Windows vs MSys

Post by kamil »

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: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

start command conflict - Windows vs MSys

Post by HaRT »

kamil wrote: Thu 19 Oct, 2017 16:43how do I open/edit far:config?
Just run far:config from the FAR command line.
Фар есть инструмент, а не нянька. © 2009 DrKnS
kamil
Posts: 44
Joined: Fri 13 Apr, 2012 19:19
Has thanked: 8 times

start command conflict - Windows vs MSys

Post by kamil »

thank you.

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

Image
User avatar
John Doe
Бюрократ
Posts: 13807
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 73 times
Been thanked: 426 times
Contact:

start command conflict - Windows vs MSys

Post by John Doe »

User avatar
HaRT
Moderator
Posts: 10823
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

start command conflict - Windows vs MSys

Post by HaRT »

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

start command conflict - Windows vs MSys

Post by kamil »

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

Return to “Support and Troubleshooting”