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
Neophile

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
gladson1976

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
Neophile

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
flytomars

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
Tepid

Win 7 Ultimate 32bit
 
 

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

Batch.cmd
Code:
@echo on
call "I am a command, see me run"

pause
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
Reply

 Stop Command Line Window Message From Closing




Thread Tools




Similar help and support threads
Thread Forum
closing command prompt in the middle of an operation
I was doing a clean all command on one of my HDD's. I was closing windows and accidentally closed the command prompt window. The drive is in an external dock and the light is still flashing like it's still doing what I asked it to do. I reopened CMD and typed diskpart but that's as far as I...
General Discussion
If Then Start Stop Service from Command Line
Is there a away from the windows 7 command line I can check if a specific service is running and if it is stop it? If not specifically stop it is it possible to just check if its there?
Software
Executing command line command anywhere ?
I want to create a setup whereas a command line command can be run from any directory/folder, without having to be in the directory/folder whereas the command line command resides ?
General Discussion
run window update from command line?
can Window Update be ran from command line?
Windows Updates & Activation
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 12:27.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App