How to set priorty for schedule tasks?

E

Eric

I would like to set REALTIME priority to open myfile.xls for my schedule task.
I find some example as shown below, but the coding structure is confusing.
What should I type into the text field for execute schedule task?
Does anyone have any suggestions on how to set priority on schedule tasks?
Thanks in advance for any suggestions
Eric

For example:
1) start /REALTIME c:\documents\myfile.xls
2)
cd D:\Program Files\Some_Program
START "Some_Program" /REALTIME Some_Program.exe
 
P

Pegasus [MVP]

Eric said:
I would like to set REALTIME priority to open myfile.xls for my schedule
task.
I find some example as shown below, but the coding structure is confusing.
What should I type into the text field for execute schedule task?
Does anyone have any suggestions on how to set priority on schedule tasks?
Thanks in advance for any suggestions
Eric

For example:
1) start /REALTIME c:\documents\myfile.xls
2)
cd D:\Program Files\Some_Program
START "Some_Program" /REALTIME Some_Program.exe

You can embed your scheduled in a batch file, then set the priority of the
actual task with the Start command as above.
 
E

Eric

Should I use (1) or (2)?
coding (1) seems look right to me.
I don't understand on how to set priorty for schedule task using (2)
structure.
Do you have any suggestions?
Thanks in advance for any suggestions
Eric
 
P

Pegasus [MVP]

I would use this batch file:
@echo off
START "Some_Program" /b /REALTIME "c:\Tools\Some_Program.exe"
 
E

Eric

I would like to open excel file, which is "my file.xls" under d:\documents\
Could you please tell me how to modify the coding?
What to define "Some_Program" and "c:\Tools\Some_Program.exe"?
@echo off
START "Some_Program" /b /REALTIME "c:\Tools\Some_Program.exe"
Thanks in advance for any suggestions
Eric
 
E

Eric

I tries following code, it open "my file.xls", but when I check the priorty,
which is normal, not realtime.
@echo off
START "d:\documents\my file.xls" /b /REALTIME "d:\documents\my file.xls"
Does anyone have any suggestions on what wrong it is?
Thanks in advance for any suggestions
Eric
 
P

Pegasus [MVP]

This is probably because you are not invoking excel.exe directly as I
suggested. You rely on the file association for .xls files instead.
 
E

Eric

START "What is some program here?" /b /REALTIME "C:\Program Files\Microsoft
Office\OFFICE11\EXCEL.EXE"
Could you please tell me where to place the code to open file?
"d:\documents\my file.xls"
Thanks in advance for any suggestions
Eric
 
P

Pegasus [MVP]

Sometimes you need to experiment a little to find out how to do things.

START "What is some program here?" /b /REALTIME "C:\Program Files\Microsoft
Office\OFFICE11\EXCEL.EXE" "d:\User Files\My Spreadsheet.xls"
 
E

Eric

I have tried following code, which open file.xls, but the priorty is still
normal, not realtime.
Do you have any suggestions?
Thanks in advance for any suggestions
Eric

start /b /REALTIME "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE"
"d:\User Files\My Spreadsheet.xls"
 
P

Pegasus [MVP]

You need to ask yourself some probing questions, e.g.
- How exactly do you determine the job's priority when it runs?
- Does your method give you the desired priority when you run the batch file
in the foreground rather than scheduled?
- Do you get the desired priority when you run the batch file without the
"Run" command?
 
E

Eric

I understand why a higher priorty is needed for a task, one task requires
higher priorty if not it will be idle for a while, so this task is required
to set higher priorty for processing.
Do you have any suggestions on what wrong the code is to set realtime
priority on schedule task?
Thank you very much for any suggestions
Eric

start /b /REALTIME "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE"
"d:\User Files\My Spreadsheet.xls"
 
P

Pegasus [MVP]

Mhm. I think we're talking a different language. This is *your* project and
I suggested a number of important questions that you need to ask yourself in
order to clarify the matter. If it was my own project then I would sit down
and try to answer them to the best of my knowledge. Since it is not my
project I am not going to do this - this is your job!
 
E

Eric

Many thanks for any suggestions
Eric

Pegasus said:
Mhm. I think we're talking a different language. This is *your* project and
I suggested a number of important questions that you need to ask yourself in
order to clarify the matter. If it was my own project then I would sit down
and try to answer them to the best of my knowledge. Since it is not my
project I am not going to do this - this is your job!



.
 
B

BillyBob

Pegasus,

Looking at the history of Eric's posts (not referring to *only* this
thread), he does not possess the inclination for self-directed learning or
the capacity to think for himself. IOW, he needs answers and information
handed to him.

This is probably why the 3rd grade was the hardest five years of his life.

BB
 
P

Paul

Eric said:
Many thanks for any suggestions
Eric

Playing with priority is dangerous.

Generally speaking, values +1 or -1 with respect to
nominal, are safe. But using extreme values, can lead
to lockups or an inability to get any response from
the computer display.

http://www.tweakxp.com/article37034.aspx

"*Realtime is not recommended unless you have a dual-CPU system!"

That tells you, that causing Excel to run RealTime, will cause
it to hog one whole core of the computer. If you're not careful,
no other necessary system processes may be able to run.

Values like "AboveNormal" or "BelowNormal" should be
safe for experimentation.

Command syntax for "Start" :

http://www.jpsoft.com/help/index.htm?start.htm

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top