In a Windows 7 environment, I want to get the arguments of running processes from the command line. For example if file C:\textfile.txt is opened in notepad, the resulting process is "C:\Windows\system32\notepad.exe C:\textfile.txt". I want the C:\textfile.txt part.
There are user interface programs that can do this, such as Process Explorer or Windows' own Task Manager (through View -> Select Columns -> Command Line).
There are also utilities like pslist, tasklist or "wmic process get" that provide process details from the command line, but I was not able to find any options that give the arguments of the process.