*! nlog ver 2.0 09sep2009
*! Opens named log -total- in NoteTab Light
*! Author: Svend Juul

program nlog
version 9
quietly log query total

if "`r(filename)'" == "" {
   display as error "No log file"
}
else {
   winexec "C:\program files\NoteTab Light\NoteTab.exe" "`r(filename)'"
}

end