In windows, use ERRORLEVEL. //John
On 7/28/07, Saurabh Jain <[EMAIL PROTECTED]> wrote: > > --- In [email protected] <c-prog%40yahoogroups.com>, "Shishir > Sharma" <[EMAIL PROTECTED]> > wrote: > > > > > > how can we know the return status of last program through a programm > > if ans is platform spesefic the please tell about both windows and > > linux... > > Hi, > On Linux/Unix "$?" should do the trick. > You can try echo $? after a command to know its return status. > > -Saurabh > > > [Non-text portions of this message have been removed]
