Is this breaks command prompt MUI?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
npocmaka_
Posts: 517
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Is this breaks command prompt MUI?

#1 Post by npocmaka_ » 26 Sep 2014 03:10

(This is something that XP users probably will be not able to reproduce because there's no MUI - http://msdn.microsoft.com/en-us/library ... 70(v=vs.85).aspx )

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)

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Is this breaks command prompt MUI?

#2 Post by foxidrive » 26 Sep 2014 03:49

npocmaka_ wrote:

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 :


is it reproducible on your PC?

What commands do you type in to generate the error messages?

npocmaka_
Posts: 517
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: Is this breaks command prompt MUI?

#3 Post by npocmaka_ » 26 Sep 2014 05:37

foxidrive wrote:
npocmaka_ wrote:

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 :


is it reproducible on your PC?

What commands do you type in to generate the error messages?


Yes I'm able to reproduce.Commands Are nosuchcommand and call :comething for instance.

But.1.File should be double clicked.2.With no admin permissions.3.Vista and above.

My system is Win8x64 and have no other at the moment to test (not enough sapce on hardisk for virtualbox...).

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Is this breaks command prompt MUI?

#4 Post by foxidrive » 26 Sep 2014 10:19

ok. I use an admin account so can't test it.

Post Reply