• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do i run any exe with low priority?

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

When i execute the following java program it gives me the error,

Actually i want to run this exe with low process priority.

Check the below code , which i have write, Can any body tell me that my command string is proper or not?



I have try it with notepad.exe ,for the notepad.exe it working fine and proper but not working with this exe file ,SAV32CLI123.EXE
and for testing purpose , i have manually run this SAV32CLI123.EXE through command prompt , it gives me the same working result as like my notepad.exe case.
But from java , i can not run it ?
Let me know ,if you want to need other information?

Thanks & Regards
Yatin Baraiya
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

yatin baraiya wrote:

When i execute the following java program it gives me the error,

Actually i want to run this exe with low process priority.

Check the below code , which i have write, Can any body tell me that my command string is proper or not?


I don't know if there any problem with that command and what error you are running into. But I'm curious - why do you need a Java program to trigger an exe?
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would help if you'd provide the exact, complete error message.

At a guess, though, I'd say you need quotes around your executable name, since it contains a space.

 
yatin baraiya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Jeff Verdegan

thanks for quick reply

when i execute with the below code , it will not create any process in task manger and not giving any error as well


but when i execute with the below command, it create this process "SAV32CLI123" in task manger process section with normal priority.


 
yatin baraiya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all

finally i have find the problem

it is working fine when i remove space in exe path, as like below


now anybody have idea which run my command if my exe having whatever path?

Regards
Yatin Baraiya
 
Don't touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic