Windows XP Community - XPHeads



Can one start a program with lower priority from a .lnk-file?

microsoft.public.windowsxp.customize


Reply
  #1 (permalink)  
Old 06-23-2008, 08:23 AM
Michael Moser
 
Posts: n/a
Can one start a program with lower priority from a .lnk-file?
I would like to start a specific program from a desktop .lnk-file (aka
"shortcut") but with low priority (so it runs essentially in the
background).
Can I do that and what are the necessary options?

I tried to change the "target" in the links property to read
start "title" /LOW "<path to .exe>" but that only yields me a "the
name 'start' specified in the target box is not valid. Make sure bla
bla...".

Is there really no more elegant way than to move the command line into a
..cmd/.bat file and then use that as link target?

Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-23-2008, 02:01 PM
Leonard Grey
 
Posts: n/a
Re: Can one start a program with lower priority from a .lnk-file?
A program runs in the background because that's how the developers
designed it. The designers of the program in question can tell you if
they built that into the code, possibly by a command line option. If
they didn't, you can't force it to run in the background.

'Low priority' doesn't necessarily mean 'in the background'. Priority
has to do with what priority a program gets to access the CPU's resources.

---
Leonard Grey
Errare humanum est

Michael Moser wrote:
> I would like to start a specific program from a desktop .lnk-file (aka
> "shortcut") but with low priority (so it runs essentially in the
> background).
> Can I do that and what are the necessary options?
>
> I tried to change the "target" in the links property to read
> start "title" /LOW "<path to .exe>" but that only yields me a "the
> name 'start' specified in the target box is not valid. Make sure bla
> bla...".
>
> Is there really no more elegant way than to move the command line into a
> .cmd/.bat file and then use that as link target?
>
> Michael
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-24-2008, 04:33 AM
Ramesh, MS-MVP
 
Posts: n/a
Re: Can one start a program with lower priority from a .lnk-file?
Add %comspec% before "Start".

%comspec% /c start "title" /LOW "<path to .exe>"

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
The Winhelponline Blog: http://www.winhelponline.com/blog
Windows® Troubleshooting: http://www.winhelponline.com


"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:OVidmpQ1IHA.3920@TK2MSFTNGP02.phx.gbl...
>I would like to start a specific program from a desktop .lnk-file (aka
>"shortcut") but with low priority (so it runs essentially in the
>background).
> Can I do that and what are the necessary options?
>
> I tried to change the "target" in the links property to read
> start "title" /LOW "<path to .exe>" but that only yields me a "the name
> 'start' specified in the target box is not valid. Make sure bla bla...".
>
> Is there really no more elegant way than to move the command line into a
> .cmd/.bat file and then use that as link target?
>
> Michael
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-25-2008, 10:25 PM
Michael Moser
 
Posts: n/a
Re: Can one start a program with lower priority from a .lnk-file?
Ramesh, MS-MVP wrote:
> Add %comspec% before "Start".
>
> %comspec% /c start "title" /LOW "<path to .exe>"
>


Thanks -that's exactly what I was looking for!

Cheers,
Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-26-2008, 07:18 AM
Ramesh, MS-MVP
 
Posts: n/a
Re: Can one start a program with lower priority from a .lnk-file?
You're welcome Michael.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
The Winhelponline Blog: http://www.winhelponline.com/blog
Windows® Troubleshooting: http://www.winhelponline.com


"Michael Moser" <michael-nospam.moser@nospam.freesurf.ch> wrote in message
news:ewd8jJx1IHA.528@TK2MSFTNGP02.phx.gbl...
> Ramesh, MS-MVP wrote:
>> Add %comspec% before "Start".
>>
>> %comspec% /c start "title" /LOW "<path to .exe>"
>>

>
> Thanks -that's exactly what I was looking for!
>
> Cheers,
> Michael
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:37 AM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74