Как я могу прикрепить Cygwin.bat к моему стартовому экрану Windows 10?

548
interstar

Кажется, вы не можете прикрепить .bat напрямую по какой-то причине.

Есть ли способ запустить Bash Cygwin с моего начального экрана?

Обновление: Кстати, я следовал совету в некоторых «дублирующих вопросах», например. сделайте ярлык и сделайте это, и кажется, что вы не можете прикрепить ярлыки к файлам bat в Windows 10.

0

2 ответа на вопрос

1
Ƭᴇcʜιᴇ007

It's a bit of a PITA, but you can do it.

  • Make a shortcut to the batch file you want (save it on your desktop or someplace).
  • Open up the Run dialog (Win+R).
  • Run shell:programs.
  • Copy the shortcut you made into the folder it opens.
  • Reboot, and log back in.
  • Your batch file should now show up under Start -> All Apps.
  • Right-click it and select Pin to Start.
Я не нашел необходимости перезагружать, но в остальном это работает отлично. Ben Blank 7 лет назад 0
1
P. Heffner

You probably don't want to launch bash, you want to launch a terminal which runs bash within it. The cygwin installation should have placed a shortcut to 'Cygwin Terminal' on your desktop. Pin that to the taskbar/Start menu and off you go.

If you don't see a shortcut for it (it actually launches the mintty terminal program) just run the cygwin setup through to completion (it will do an update on your existing packages if you don't select anything extra) and on the final dialog check the boxes for "Create icon on Desktop" and "Add icon to Start Menu" and you will have it. You can link that one to the taskbar to be able to launch your terminal whenever you want.

Действительно, терминал MinTTY превосходит командное окно Windows. Он уже давно доступен в качестве терминала Cygwin по умолчанию. Daniel B 7 лет назад 0