Windows 7 Forums Search
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has 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-04-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
04-05-2010   #12


Windows 7 Ultimate x86 build 7600 (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
04-07-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
.


10-01-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
10-01-2010   #15


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 problems?



Thread Tools



Similar Threads for: Stop Command Line Window Message From Closing
Thread Forum
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


All times are GMT -5. The time now is 04:00 AM.



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
  

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