Get commandline
-
How do u get the commandline (arguments) of another process? I example if i use run like so: notepad.exe test.txt I would like my program to return test.txt or whatever the argument might be. Thanks!
So far as I know this cannot be done for another process, only for your own program.
topcoderjax - Remember, Google is your friend. Try this Custom Google Code Search
-
How do u get the commandline (arguments) of another process? I example if i use run like so: notepad.exe test.txt I would like my program to return test.txt or whatever the argument might be. Thanks!
Hi, it must be possible, utilities such as TaskInfo do it, but I dont know how... :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
How do u get the commandline (arguments) of another process? I example if i use run like so: notepad.exe test.txt I would like my program to return test.txt or whatever the argument might be. Thanks!
-
Found it: - see Process class - use whatever static methods there you need to get to the right Process - then look at theProcess.StartInfo.Arguments :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
Found it: - see Process class - use whatever static methods there you need to get to the right Process - then look at theProcess.StartInfo.Arguments :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
it works for me. if you want more help, show your code and results. :)
Luc Pattyn [My Articles] [Forum Guidelines]