How to start a command in a sub-directory ?


  1. Posts : 27
    Win10
       #1

    How to start a command in a sub-directory ?


    Hi,
    when i have a sub-directory "bin", which has a cake.exe, and i type "bin/cake" or "./bin/cake" or "/bin"cake" it cant't finde the cake.exe.

    I'm getting an error message for example:
    "'bin' is not recognized as an internal or external command"

    How is the right syntax ?


    Regards,
    Frank
      My Computer


  2. Posts : 27
    Win10
    Thread Starter
       #2

    bin\cake
      My Computer


  3. Posts : 31,695
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    Frank1000 said:
    H I'm getting an error message for example:
    "'bin' is not recognized as an internal or external command"
    How is the right syntax ?
    From a command prompt you need to use the START command followed by the path and name of the .exe, like this:

    START bin/cake
      My Computers


  4. Posts : 8,114
    windows 10
       #4

    It will run if you use the full path ie c:\bin\cake.exe or you can add the folder to the path
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:04.
Find Us




Windows 10 Forums