Hello everyone , Thanks for giving me the question moved in the right section and thank you for the answers . argumentum tried the .bat file and I do not recognize the command " pslist " But I understood the meaning . However I can not correct the error of command pslist not recognized . With locked program , I mean that the process is in the " not responding" and then it goes off and on again , or restart. Is the operating system is Windows 2000 and would be nice to be a script is a .bat file c ++ / c