Hey All, I am having a problem with the last line of this .bat file...
After running thebat.exe, control is not passed back to the .bat file, and I have to kill the cmd window. I have run it like shown and with CMD /C in front of it with the same results. Any thoughts on what might be happening? ,----- [ MAILbu.bat ] | @echo off | | ::Ok, lets shut TB down! | "C:\Program Files\The Bat!\thebat.exe" /EXIT | | ::We should wait for TB to exit... | :: possibly find a programmatic way to check? | :: or, if not, use sleep? | pause | | ::Now we dump the reg key for TB (keeping a backup if it exists) | set BUfilename="\MAIL\TheBatRegBU.reg" | copy %BUfilename% %BUfilename%.old /y | regedit /e %BUfilename% HKEY_CURRENT_USER\software\rit | | ::Here is where we make a backup of the MAIL directory | :: make the .rar filename YYMMDD.rar... | "C:\Program Files\WinRAR\RAR.exe" a E:\MAILbu.rar E:\MAIL | | "C:\Program Files\The Bat!\thebat.exe" /MINIMIZE `----- -- Tim Musson Flying with The Bat! eMail v1.62 Christmas Edition Windows 2000 5.0.2195 (Service Pack 2) OK, I'm weird! But I'm saving up to become eccentric. ________________________________________________________ Current version is 1.61 | "Using TBTECH" information: http://www.silverstones.com/thebat/TBUDLInfo.html
