in reply to Perl Version & Installed Directory Path

While I can't vouch for its portability, this worked for me on WinXP's cmd.exe.. And, like the OP kind of asked, it's done using Perl :)

perl -E "say 'Path: ', $^X; say 'Version: ', $^V"