I've always wondered about this: what the numerical value that you pass to ExitProcess means. I couls never figure it out,...but, I have always assumed that if you pass THE WRONG VALUE,...every so often the process will hang or do something really annoying.
So,...here is the definitive answer, from Raymond Chen: Why Is My Program Terminating With Exit Code 3?
(http://blogs.msdn.com/b/oldnewthing/archive/2011/05/19/10166093.aspx)
:eek ...I feel so much better now,... :eek
You will notice, if you read all the comments to Mr. Chen's Blog entry, that I wasn't the only one suffering from extreme anxiety over this issue,...
http://msdn.microsoft.com/en-us/library/ms681381.aspx
This Standart. -1,true and false also standart. sorry if I don't understand your problem
Under DOS commandline and backcode have more importance, now frequently forgot about them, but it gives a useful possibility for automatisation
:bg
It just goes to prove that you guys are not DOS batch file men. ERRORLEVEL has been around since the early DOS days.
this is not very old days. this allow make not only batch. for example I have two program. one may get direct link from filehosting like rapidshare and many others inputing captcha and all other...
http://www.dimonius.ru/?usd
but like download manager it's not very good. so I run three copy of USD and they send links to Download Master
http://westbyte.com/dm/index.phtml?page=download
through command prompt
first program free and have english. second program free only for ex-USSR countries (where never pay for program but DM show commercial advertisement, which you may easily switch off), but you make take english localization from Download Accelerator and put it to free Download Master
I like to return 259, that way the guys who use a loop to check for an exit code instead of using the wait functions can have a bit of fun figuring out what happened :bdg
:bg
Shame if you need to do more than wait. :P
well - if you read the docs, someplace i read something like...
QuoteYou must return the value from MSG.wParam
but then, i guess you can set it with the PostQuitMessage parm :P
only us very old guys remember ERRORLEVEL :lol
everyone in here seems to remember it
what does that tell you ?
welcome to the old guys forum
Quote from: HUTCH...It just goes to prove that you guys are not DOS batch file men,...
Not only does it prove that I am not a DOS batch file man,...It shows that I don't even know what a DOS batch file man IS.
...Oh,...wait a minute,...is this,...Australian humor ???
:eek ...I guess that proves that I don't really understand Australian humor,...either,... :eek
...And, I thought I did,...
batch file very usefull - for ex batch install windows update from files
Windows isn't Linux, but batch files are to Windows what scripts are to Linux! :U
:bg
baltoro,
Its even worse than you thought, years of practice making DOS com files that you either used in conjunction with batch files or even worse still, compiled the batch files themselves into DOS com files. In the modern era with CMD.EXE they are still useful for accurately sequencing command line utilities like assemblers, compilers, linkers, resource compilers and as many other console apps as you feel like writing.