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

    App doesnt open through a batch file


    Chaps...


    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)

    tyvm...
      My ComputerSystem Spec
  2.    08 Dec 2015 #2
    Join Date : Jun 2015
    Posts : 1,929
    Windows 3.1 to Windows 10

    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.    08 Dec 2015 #4
    Join Date : Sep 2015
    Posts : 5
    win10 home 64bit
    Thread Starter

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

 


Similar Threads
Thread Forum
Customization Add 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 to quickly create new files, folders, and shortcuts. You can right...
Tutorials
Start a program from a batch file
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...
Software and Apps
How to use psshutdown.exe to create a batch file to shutdown my PC
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...
Software and Apps
System Info Batch File
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...
Chillout Room
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:17.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums