how to check whether.bat with text document file run ?