Here's a pretty simple script:
Code: Select all
start /b cmd.exe
exit /b 0
Logically it creates a new cmd context with start /b and exits the first one with exit command.
Start the script with double click and after the script is finished the command prompt will left ready to accept your commands.
But there will be problem with error messages.For not existing commands and some parsing issues the message will be :
DNS server not authoritative for zone.
And for others will look like:
Code: Select all
The system cannot find message text for message number 0x400023cd in the message
file for Application.
If the script is ran with admin permissions there will be no problems.
After reading this - http://domainwebcenter.com/?p=712 - I start wondering if command prompt somehow lost its locale/access to its MUI files in this case and why this happens.
(there's a chance this to happens only on my machine)