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
 
Back
Top