vendredi 17 avril 2015

How do I get the parent command in Windows command line?

In a Unix shell, I can get the parent command using ps -ocommand= -p $PPID. How can I do the same from the Windows shell?


I need this for a Git pre-commit hook that detects whether the commit was initiated with the --amend flag.


Aucun commentaire:

Enregistrer un commentaire