open doc command for Windows Terminal

Hi.

I practiced the ‘’’ { open index.html } ‘’’ command to open docs on my friends Mac, not peer coding a bit so catching up on my Windows computer. When I implement the same code I get a error.

‘’’ {
PS G:\docs\github\elixir\cards\doc> open index.html
open : The term ‘open’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • open index.html
  •   + CategoryInfo          : ObjectNotFound: (open:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS G:\docs\github\elixir\cards\doc> open ./index.html
open : The term ‘open’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • open ./index.html
  •   + CategoryInfo          : ObjectNotFound: (open:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

} ‘’’

Thanks! :smiley:

You cannot run mac commands in windows… But You might try explorer instead.

It seems that you use PowerShell, quick Google pointed me to Invoke-Item (Microsoft.PowerShell.Management) - PowerShell | Microsoft Docs

1 Like

This is how ex_doc opens documentation.

So Windows Edge, or just use the file explorer?