How to fix '.' is not an internal or external command error

前端 未结 4 1669
失恋的感觉
失恋的感觉 2020-11-27 19:03

I have followed few links to try and solve this issue, such as link1 , where they have asked to me include the path of the exe in the environment variables. This is the foll

相关标签:
4条回答
  • 2020-11-27 19:12

    Just leave out the "dot-slash" ./:

    D:\Gesture Recognition\Gesture Recognition\Debug>"Gesture Recognition.exe"
    

    Though, if you wanted to, you could use .\ and it would work.

    D:\Gesture Recognition\Gesture Recognition\Debug>.\"Gesture Recognition.exe"
    
    0 讨论(0)
  • 2020-11-27 19:12

    I got exactly the same error in Windows 8 while trying to export decision tree digraph using tree.export_graphviz! Then I installed GraphViz from this link. And then I followed the below steps which resolved my issue:

    • Right click on My PC >> click on "Change Settings" under "Computer name, domain, and workgroup settings"
    • It will open the System Properties window; Goto 'Advanced' tab >> click on 'Environment Variables' >> Under "System Variables" >> select 'Path' and click on 'Edit' >> In 'Variable Value' field, put a semicolon (;) at the end of existing value and then include the path of its installation folder (e.g. ;C:\Program Files (x86)\Graphviz2.38\bin) >> Click on 'Ok' >> 'Ok' >> 'Ok'
    • Restart your PC as environment variables are changed
    0 讨论(0)
  • 2020-11-27 19:16

    Replacing forward(/) slash with backward(\) slash will do the job. The folder separator in Windows is \ not /

    0 讨论(0)
  • 2020-11-27 19:22

    This error comes when using the following command in Windows. You can simply run the following command by removing the dot '.' and the slash '/'.

    Instead of writing:

    D:\Gesture Recognition\Gesture Recognition\Debug>./"Gesture Recognition.exe"

    Write:

    D:\Gesture Recognition\Gesture Recognition\Debug>"Gesture Recognition.exe"

    0 讨论(0)
提交回复
热议问题