@PIDCOMMAND[pid] : Returns the startup command line for the specified process ID.

 

set pid=%@pid[tcc.exe]

echo %@pidcommand[%pid]

"C:\Program Files\JPSoft\TCMD17x64\TCC.EXE"