Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Помогите с батником плиз... 
Author Message
Spine



PostPosted: Wed Aug 16, 2006 08:34    Post subject: Reply with quote

на идеальность не претендую, но вот так у меня уж почти год работает
Code:
 
set run=no_run
tasklist /FI "IMAGENAME eq thebat.exe" | find "thebat.exe" > t_run.txt
  For /f %%a in (t_run.txt) Do set run=%%a
  if %run% NEQ thebat.exe echo test
pause


Last edited by Spine on Wed Aug 16, 2006 10:35; edited 1 time in total
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group