Thankyou so much for your help.
On the other hand is there any way in C# where i can find whether a file in a folder is already open? If the file is already open then on click of a button on windows form it should activate the already opened file. If the file is not open the button click should open the file from the specifiec folder. Is there a way to do this in C#.Net. Any sample code is highly appreciated.
Thanks...
User Profile
Collapse
-
In my case there might be more than one excel file open. So i am checking for each process in the multiple excel processes. Can i get the path of each file by having a FOR EACH Loop. If there is a way can you plz show me the sample codeLeave a comment:
-
Get the path of a file hosted by an excel process in C#
Hi,
I have a method in C# which checks if any Excel process is running on my system. If it finds any process is there a way to get the directory path of the file running in that excel process through C# code ? For example Book1.xls is running on my machine,C# code identifies this process and i need to get the directory path where Book1.xls is stored. I need this code ASAP.
Thanks.
No activity results to display
Show More
Leave a comment: