Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Stop Command Line Window Message From Closing

29 Mar 2010   #1

Windows 7 Ultimate 64-bit SP1
 
 
Stop Command Line Window Message From Closing

I have a problem running a task with Task Scheduler. The task doesn't run. I have to debug it. When I try to make it run from the app a message appears on a command line message, but it appears and disappears so quickly that I can't read it. To fix the problem I need to read it to know what is going on.

Can someone please tell me how to stop that command line window message from closing, please?

My System SpecsSystem Spec
.

29 Mar 2010   #2

Win7 Home Premium 64x
 
 

can you run the program from the command line?

open a new cmd window go to Run and type in cmd.exe

when it opens it should be in c:\windows

navigate to the folder, run the file
My System SpecsSystem Spec
30 Mar 2010   #3

Windows 7 Ultimate 64-bit SP1
 
 

Thanks Thorsen, but I do not want to run the command manually from the command prompt; that's is exactly what I want Task Scheduler to do for me. The commend is a batch file that I have been running manually for a few years now (so that it is thoroughly tested), but I want to do it automatically with the T.S. To make it run manually with T.S. to test the task you click on Run, on the right column, under Selected Item. That's where the Command line window appears with a message, and nothing happens.

I have also looked up on Event Viewer, but There is not an event failure code number, it just says the task failed to run, and the History tab is virgin, so it doesn't even start. Then I seasrched on MS Technet and found some explications, but not what I need to know: the text of the message that I cannot read because its four or five lines just blink on the screen.

How can I read this, please?
My System SpecsSystem Spec
.


30 Mar 2010   #4

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

Try adding a PAUSE at the end of the batch script.
My System SpecsSystem Spec
31 Mar 2010   #5

Windows 7 Ultimate 64-bit SP1
 
 

Thanks gladson1976, I did that too, but with no result, and that is also why I know the batch file is not processed. It must be something on the task itself because, as I said, it is not started, so it does not start the batch file and the pause there is useless.

Is is very silly that I don't know how to stop these message windows to be able to read them. Any idea of how to?
My System SpecsSystem Spec
31 Mar 2010   #6

Windows 7 Ultimate x86 build 7600 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
 
 

What is the script for anyway ? What does it do ?
Can you post the script here ?

EDIT: I just tried adding a small batch script to TS and it worked perfectly and also PAUSE worked.
My System SpecsSystem Spec
01 Apr 2010   #7

Windows 7 Ultimate 64-bit SP1
 
 

Thanks gladson1976. I've running that batch file for more than six years to clean up some parts of the system, just changing the paths according to the OSs. The Windows disk clean-up is a real shit by itself. So the problem cannot be there. I also run other tasks I created with Task Manager without any problem. My real problem is that I do not have etime nough to read the notice, because if I do, I'm nearly sure I can fix it. How to just that simple thing?
My System SpecsSystem Spec
01 Apr 2010   #8

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Setup the task under your administrator account. Then add the administrator permissions to full control for the batch file.
My System SpecsSystem Spec
02 Apr 2010   #9

Windows 7 Ultimate 64-bit SP1
 
 

Quote   Quote: Originally Posted by Bill2 View Post
Setup the task under your administrator account. Then add the administrator permissions to full control for the batch file.
I use that account to setup tasks, but how do I do I set the permissions for the batch bile if it is run by the task?
My System SpecsSystem Spec
03 Apr 2010   #10

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

Neophile,
I meant go to the folder where the batch file is located and give yourself full control over the file.
My System SpecsSystem Spec
Reply

 Stop Command Line Window Message From Closing





Thread Tools



Similar help and support threads for2: Stop Command Line Window Message From Closing
Thread Forum
run window update from command line? Windows Updates & Activation
How can I set this via command-line or registry? Customization
Gpedit via command line Performance & Maintenance
libraries and the command line Performance & Maintenance
How to run a command line utility? General Discussion
Command Line General Discussion
Can you boot from the command line? Chillout Room

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 11:04 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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