I can write a code that tells of a certain .exe's filesize

but i would like to know what code or what would i have to do to make a code that compares if the program is currently running or not??


Thank you.