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

04 Apr 2010   #11

Windows 7 Ultimate 64-bit SP1

Bill2, I did that, but no way. Then, on the Task Scheduler, I set the task to be run by the System because I think that would solve any permission problem, but it did no good either. the issue must be caused by something I wrote on the task, but as I can't read the notice, I don't know what it is.

My System SpecsSystem Spec
05 Apr 2010   #12

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

Can you post the script here so that we can try to debug it?
maybe a new pair of eyes will spot something
My System SpecsSystem Spec
07 Apr 2010   #13

Windows 7 Ultimate 64-bit SP1

Thank you all. I've found the issue. as expected, it was not on the batch file because I have been running it for ages by just double clicking directly on it. How could it be? The problem had to been something ridiculously silly, but that I could not see because I couldn't stop the message window to close to be able to read – It was like a flash. I couldn't stop it after all, but I tried many things. I fond out the problem was on the path: I had a & character on the path and it was not accepted. The path has always been like that, but as I used the batch file the way I said it did not make any difference. Probably reading the error message window I could have found this right at the first time, but I'm still unable to do that, and that is the only reason why we have lost so much time.

Thank you again for the good will trying to help.
My System SpecsSystem Spec

01 Oct 2010   #14

Windows 7

Just for next time, add a PAUSE after all the commands that might me producing the error message.
My System SpecsSystem Spec
01 Oct 2010   #15

Win 7 Ultimate 32bit

pause will produce the message "Press any key to continue"

@echo on
call "I am a command, see me run"

Run it and the window will pause and not close till you hit any key to continue.

Unless you have @echo Off, then you need to comment that out.
My System SpecsSystem Spec

 Stop Command Line Window Message From Closing

Thread Tools

Similar help and support threads
Thread Forum
Command Line - Help
Hi Guy's and Girls, Just first off I've never been too good with CMD and only an Apprentice in my company I work for. Now something I've wanted to do for awhile was to make the following but I don't necassirealy I know how to do this in one batch file: I would need a Batch file that is...
General Discussion
What is wrong with this command line?
Help please I am pulling my hair out. I use a desktop shortcut to run an application called get_iplayer.cmd located in the directory c:\program files\get_iplayer The line in the Target of the shortcut properties therefore reads: C:\Windows\System32\cmd.exe /k "c:\program...
General Discussion
run window update from command line?
can Window Update be ran from command line?
Windows Updates & Activation
Command line csc not working.
I am trying to use csc.exe from the command prompt to run a program called c:\code\helloworld.cs. I know the program works as I tested it using 'compile online dot com'. When I run csc, I get the following error (see jpg). How may I solve this problem, please? When I set the 'Path' to the...
General Discussion
libraries and the command line
I am a long time programmer and computer science professor, since 1979. I grew up with the command line and like it just fine. But Windows 7 seems to change the GUI way of doing things and not mess with the command line. Yesterday I was at the command prompt and went to C:\users\Stockwell and...
Performance & Maintenance
Command Line
Is there a cmd.exe /switch for “run as administrator” ? Thanks-
General Discussion

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 10:40.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App