how does .exe magic work? (PATHEXT) (intermediate) anthony explains

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 13

  • @Alberto_Cavalcante
    @Alberto_Cavalcante Год назад

    Thanks for sharing.

  • @fararian
    @fararian 11 месяцев назад

    Great video. Thanks.

  • @p99chan99
    @p99chan99 Месяц назад

    Just curious, would you not have the same exact functionality as cmd if you install powershell and just run it in a regular unix terminal emulator? Or it doesn't completely emulate all the ways of cmd.

    • @anthonywritescode
      @anthonywritescode  Месяц назад +1

      I would not expect PowerShell to have this behavior on posixlikes -- though pretty easy to try it and find out!

  • @Ash-qp2yw
    @Ash-qp2yw Год назад +3

    I think this is the first time I've ever seen a tui run in windows -- I've not personally used windows since before I started learning to be a developer. This was an interesting look into the other world. It seems weird that there's nothing you have to do to execute a file in your CWD - if you had a `t.py` and a `t.js` file in the same workspace directory and just typed `t`, how would it know what to run? I'd assume it would depend on which extension is first in the PATHEXT?

    • @lokeshchandak3660
      @lokeshchandak3660 Год назад +2

      Whichever is first in sequence. Atleast PATH respects the sequence, I'll have to look up if pathext does the same

    • @anthonywritescode
      @anthonywritescode  Год назад +1

      yep the first one wins

  • @jtw-r
    @jtw-r Год назад

    would JScript (not javascript, JScript) be considered one of these extensions? Doesn’t it automatically launch cscript?
    it’s been a while since i’ve used windows, forgive me for my ignorance

  • @fabtjar
    @fabtjar Год назад

    Is there a reason to use command prompt over powershell? I though powershell was the replacement.

    • @anthonywritescode
      @anthonywritescode  Год назад +3

      not really -- just personal preference. I actually don't really like powershell and tend to use git bash myself

    • @fabtjar
      @fabtjar Год назад

      @@anthonywritescode I thought it could only be used for git 😱 maybe looking at windows terminals would be an interesting video if you haven't already done one. I'm sure others are lost like me and use powershell because they think that's the only option

  • @mrswats
    @mrswats Год назад +4

    Windows is wired. This only makes me not wanna code in Windows😂(even less than I already which is null)