ggfinder Posted May 12, 2005 Posted May 12, 2005 Hi everybody,I am new in programming... Excuse my ignorance.I use dos command in a batch to install programs, copy files and delete icons.I would like to add a few lines at the end of the batch.If no errors appends, i would like the batch to tell me something like : Everything OK.If some errors (missings files, wrong directory or whatever appends, I would like the errors written in a txt or a window.I'm sure this is possible, but I can't make it.I've been heard of sth like : >> texte.tx Unfortunately ...Please and thanks in advance.GG
Martin Zugec Posted May 12, 2005 Posted May 12, 2005 You must use variable %Errorlevel% (hope so I understand your request)... E.g. If %ErrorLevel% NEQ 0 echo Error during installation of XXX >> %systemdrive%\ErrorInstall.log
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now