Why can't I start a program with this .bat file?


  1. Posts : 50
    Windows 10
       #1

    Why can't I start a program with this .bat file?


    Why won't this program run with this attached .bat file? I have tried on multiple computers and with multiple .exe files. You have to put the .bat file in the same dir as the Chordie dir. So just unzip the file and double click the bat file.

    - - - Updated - - -

    I had already tried that before posting. Adding a \ there only creates double \\ when you run it i.e. desktop\\Chordie\Chordie.exe
    Why can't I start a program with this .bat file? Attached Files
      My Computer


  2. Posts : 2,191
    Windows 10 Pro 64-bit v22H2
       #2

    Try
    Code:
    start /d Chordie Chordie.exe
    syntax: /d path, where path is starting directory
      My Computers


  3. Posts : 582
    Windows 10 Home
       #3

    Open the batch file with Notepad and add two quotation marks between "Start" and "%~dp0Chordie\Chordie.exe". Be sure to save the change.

    Start "" "%~dp0Chordie\Chordie.exe"

    Ben
      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 01:13.
Find Us




Windows 10 Forums