Windows 10: App doesnt open through a batch file

  1. Posts : 5
    win10 home 64bit
       08 Dec 2015 #1

    App doesnt open through a batch file


    I have a desktop running with a few apps 24/7 feeding to a network, on the rare occasion it drops or restarts due to some update or power outage I thought I could write a simple batchfile just to restart everything automatically.

    Problem is 1 app refuses to start, the app itself is in c:\program files (x86)\ and that seems to be the issue. Error message I get is "cannot find c:\program"

    path for the app is...

    C:\Program Files (x86)\COAA\PlanePlotter\PlanePlotter.exe

    the other 2 apps open fine (but they are not pathed to (x86). am I going daft or missed something simple?

    any help welcome....
    (Win 10 64 bit all updted)

      My ComputerSystem Spec

  2.    08 Dec 2015 #2

    you have to put quote " " around the path cmd in your .bat fie..

    "C:\Program Files (x86)\COAA\PlanePlotter\PlanePlotter.exe"

    you can not have spaces in cmd wording without using quotes ( the path halts at the first space ) thus ( C:\Program )
      My ComputerSystem Spec

  3.    08 Dec 2015 #3

    Kyhi is 100% correct.

    ...but why not use Powershell... it's more dynamic - eg: env:ProgramFiles(x86) + whatever path...
      My ComputerSystem Spec

  4. Posts : 5
    win10 home 64bit
    Thread Starter
       08 Dec 2015 #4

    tyvm chaps i'll give it a go
      My ComputerSystem Spec


Related Threads
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
Start a program from a batch file in Software and Apps
I'm trying to create a batch file that should - call another batch file - start a program and then wait for the program to close - call another batch file My goal with this is to work around an issue in Windows 10 where the screensaver won't...
I am trying to use psshutdown.exe to create a batch file to shutdown my PC. I want the equivalent of "Shut Down" from the start menu. Should I use the switch -k or -s. I do not understand the difference between these arguments and I want to...
System Info Batch File in Chillout Room
Hi Everyone, I thought it may be interesting to get input from others regarding this batch file. I was hoping for suggestions about: Information to add to the report. Ways of making the current code more efficient. Etc... A while back i...
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 07:30.
Find Us