im trying to find a way to get my own PID from a command prompt (for later use in bat scripts) so far the only useful way i found was to use getpids.exe from here : http://www.scheibli.com/projects/getpids/index.html but im looking for a command that's "built in" to windows
edit : im looking for a "bullet proof" way - no assumptions about my process being the only cmd.exe or anything