On Linux, the return value of the main function is stored in $ ?, and can be shown with echo $ ?. Is there something equivalent on Windows?
echo %ERRORLEVEL%
Source: https://habr.com/ru/post/1737187/More articles:How to choose a region in Windows Forms PictureBox? - c #Nested lambda expressions and string cultures - c #Я (думаю) Я хочу использовать BItWise Operator для проверки свойства useraccountcontrol! - c#Which book should I read as an alternative to First Servlets and JSPs? - javaPassing data to a data template selector - wpfNegative fields: can they work in IE7 and IE8? - htmlМассивы в JavaScript - javascriptIntellisense in header files - c ++Crazy VS constructor errors - c #Динамически созданный iframe, используемый для загрузки триггеров файлов с загрузкой с помощью firebug, но не без - javascriptAll Articles