Stop Command Line Window Message From Closing

Page 1 of 2 12 LastLast

  1. Posts : 171
    Windows 7 Ultimate 64-bit SP1
       #1

    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 Computer


  2. Posts : 3,300
    Win7 Home Premium 64x
       #2

    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 Computer


  3. Posts : 171
    Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #3

    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 Computer


  4. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #4

    Try adding a PAUSE at the end of the batch script.
      My Computer


  5. Posts : 171
    Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #5

    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 Computer


  6. Posts : 1,210
    Windows 7 Ultimate x64 (XP, 98SE, 95, 3.11, DOS 7.10 on VM) + Ubuntu 10.04 LTS Lucid Lynx
       #6

    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 Computer


  7. Posts : 171
    Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #7

    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 Computer


  8. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #8

    Setup the task under your administrator account. Then add the administrator permissions to full control for the batch file.
      My Computer


  9. Posts : 171
    Windows 7 Ultimate 64-bit SP1
    Thread Starter
       #9

    Bill2 said:
    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 Computer


  10. Posts : 5,056
    Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
       #10

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


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About 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 05:00.
Find Us