Windows 7 run batch file at low priority in wide window
I have a long-running, CPU-intensive job that I want to run with low priority. This is easily done in a Windows 7 batch file with START /LOW.
The only problem is that it starts a separate window which is the default width for a command window, which is very narrow, less than half the width of one monitor, which makes it harder to read the results than I would like. (I have set the properties of the command window shortcut so that it normally starts a wider window, but that isn't getting applied in this context.)
How can I cause the long-running job to run in a wide command window? I have tried START /LOW /B to run the low priority job within the current window, but that leaves the process associated with the job still hanging around even after the job finishes, which messes things up.
windows-7 windows command-line batch process
add a comment |
I have a long-running, CPU-intensive job that I want to run with low priority. This is easily done in a Windows 7 batch file with START /LOW.
The only problem is that it starts a separate window which is the default width for a command window, which is very narrow, less than half the width of one monitor, which makes it harder to read the results than I would like. (I have set the properties of the command window shortcut so that it normally starts a wider window, but that isn't getting applied in this context.)
How can I cause the long-running job to run in a wide command window? I have tried START /LOW /B to run the low priority job within the current window, but that leaves the process associated with the job still hanging around even after the job finishes, which messes things up.
windows-7 windows command-line batch process
add a comment |
I have a long-running, CPU-intensive job that I want to run with low priority. This is easily done in a Windows 7 batch file with START /LOW.
The only problem is that it starts a separate window which is the default width for a command window, which is very narrow, less than half the width of one monitor, which makes it harder to read the results than I would like. (I have set the properties of the command window shortcut so that it normally starts a wider window, but that isn't getting applied in this context.)
How can I cause the long-running job to run in a wide command window? I have tried START /LOW /B to run the low priority job within the current window, but that leaves the process associated with the job still hanging around even after the job finishes, which messes things up.
windows-7 windows command-line batch process
I have a long-running, CPU-intensive job that I want to run with low priority. This is easily done in a Windows 7 batch file with START /LOW.
The only problem is that it starts a separate window which is the default width for a command window, which is very narrow, less than half the width of one monitor, which makes it harder to read the results than I would like. (I have set the properties of the command window shortcut so that it normally starts a wider window, but that isn't getting applied in this context.)
How can I cause the long-running job to run in a wide command window? I have tried START /LOW /B to run the low priority job within the current window, but that leaves the process associated with the job still hanging around even after the job finishes, which messes things up.
windows-7 windows command-line batch process
windows-7 windows command-line batch process
asked Dec 20 '18 at 9:35
rwallace
96921526
96921526
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Best ways to do it
As you said " default width for a command window, which is very narrow "
This is because you did not change default width and height of command prompt. you must have to change default width and height of command prompt it self not for the shortcut.
open run and type cmd, hit enter
right click on title bar and chose properties
go to layout menu and change window size to desire (optimal width:200 Height:50)
from font menu change fonts also to desire size
press ok and exit CMD
(You must run CMD again and drag CMD to desire position on screen and close it.which position you will close it, CMD will run always on exact position with same windows and font size you set.
Now when ever you will run batch file or command prompt they will always run in same position, same windows size and font.
Note : this solution can do trick on windows 7 as well as windows 10.
Extra : there is quick and dirty solution for this also, add this line in Batch file
after @echo
MODE CON COLS=999 LINES=999
but this will only increase size of window, nothing will change with fonts etc.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386199%2fwindows-7-run-batch-file-at-low-priority-in-wide-window%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Best ways to do it
As you said " default width for a command window, which is very narrow "
This is because you did not change default width and height of command prompt. you must have to change default width and height of command prompt it self not for the shortcut.
open run and type cmd, hit enter
right click on title bar and chose properties
go to layout menu and change window size to desire (optimal width:200 Height:50)
from font menu change fonts also to desire size
press ok and exit CMD
(You must run CMD again and drag CMD to desire position on screen and close it.which position you will close it, CMD will run always on exact position with same windows and font size you set.
Now when ever you will run batch file or command prompt they will always run in same position, same windows size and font.
Note : this solution can do trick on windows 7 as well as windows 10.
Extra : there is quick and dirty solution for this also, add this line in Batch file
after @echo
MODE CON COLS=999 LINES=999
but this will only increase size of window, nothing will change with fonts etc.
add a comment |
Best ways to do it
As you said " default width for a command window, which is very narrow "
This is because you did not change default width and height of command prompt. you must have to change default width and height of command prompt it self not for the shortcut.
open run and type cmd, hit enter
right click on title bar and chose properties
go to layout menu and change window size to desire (optimal width:200 Height:50)
from font menu change fonts also to desire size
press ok and exit CMD
(You must run CMD again and drag CMD to desire position on screen and close it.which position you will close it, CMD will run always on exact position with same windows and font size you set.
Now when ever you will run batch file or command prompt they will always run in same position, same windows size and font.
Note : this solution can do trick on windows 7 as well as windows 10.
Extra : there is quick and dirty solution for this also, add this line in Batch file
after @echo
MODE CON COLS=999 LINES=999
but this will only increase size of window, nothing will change with fonts etc.
add a comment |
Best ways to do it
As you said " default width for a command window, which is very narrow "
This is because you did not change default width and height of command prompt. you must have to change default width and height of command prompt it self not for the shortcut.
open run and type cmd, hit enter
right click on title bar and chose properties
go to layout menu and change window size to desire (optimal width:200 Height:50)
from font menu change fonts also to desire size
press ok and exit CMD
(You must run CMD again and drag CMD to desire position on screen and close it.which position you will close it, CMD will run always on exact position with same windows and font size you set.
Now when ever you will run batch file or command prompt they will always run in same position, same windows size and font.
Note : this solution can do trick on windows 7 as well as windows 10.
Extra : there is quick and dirty solution for this also, add this line in Batch file
after @echo
MODE CON COLS=999 LINES=999
but this will only increase size of window, nothing will change with fonts etc.
Best ways to do it
As you said " default width for a command window, which is very narrow "
This is because you did not change default width and height of command prompt. you must have to change default width and height of command prompt it self not for the shortcut.
open run and type cmd, hit enter
right click on title bar and chose properties
go to layout menu and change window size to desire (optimal width:200 Height:50)
from font menu change fonts also to desire size
press ok and exit CMD
(You must run CMD again and drag CMD to desire position on screen and close it.which position you will close it, CMD will run always on exact position with same windows and font size you set.
Now when ever you will run batch file or command prompt they will always run in same position, same windows size and font.
Note : this solution can do trick on windows 7 as well as windows 10.
Extra : there is quick and dirty solution for this also, add this line in Batch file
after @echo
MODE CON COLS=999 LINES=999
but this will only increase size of window, nothing will change with fonts etc.
answered Dec 20 '18 at 10:58
RAJA
785
785
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1386199%2fwindows-7-run-batch-file-at-low-priority-in-wide-window%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown