I have a windows application, which is installed in path say, C:\Program files\companyFolder\Applicationname
Similarly i have a web application, which when installed creates a virtual directory by any name specified by user.
I have a folder called 'inc' in the web application[virtual directory] created in IIS.
Thro the windows application i need to save some files[txt,doc..] in the same 'inc' folder.
For saving the files, i need to identify the path where the inc folder is present. [1-server name,2-virtual dir name,3- the folder 'inc']
How do i retrieve the path[generalised way of identifying the path which will be coded in the windows application]?