Click here to Skip to main content
16,013,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,
i have a word file which is already open. Now i want to get it's process ID.
how can i get process ID of my running file.

any example ? any line ?

Thanks
Manav
Posted
Comments
Rob Philpott 28-Sep-11 4:55am    
Files don't run. If you want to get a process id, that'll be of a process, presumably Microsoft Word, the instance which has your file open. Do you want to do this programatically?
manavya 28-Sep-11 7:02am    
Yes. exactly. i need to get process id of word file, which is open. There are 3 word files are open, how can i get ID of my file.

1 solution

This[^] may help.
 
Share this answer
 
Comments
manavya 28-Sep-11 5:42am    
Thanks Abhinav,
but it will return all processes running on my machin. i need only specific process created by my file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900