How to get Non-English return result from command line

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

Hello,
In English version of Windows Vista, run a command (for example
icacls.exe) as administrator from Command Prompt, i can determine if the
command successfully executed base on the return result, it is successful if
the return result contained the string "successfully".
But if Windows Vista is Non-English version, how to determine if the
command has been executed successfully?

Thank you
 
But if Windows Vista is Non-English version, how to determine if the
command has been executed successfully?

Try looking at the process exit code rathern than the textual output.
Most console applications will return zero on success and nonzero if
something fails.


Mattias
 
Thank you, it return 0 if success.

Mattias Sj?gren said:
Try looking at the process exit code rathern than the textual output.
Most console applications will return zero on success and nonzero if
something fails.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top