How to get the path of the file that is present with in the project folder.
-
Hai all, In my program an animation control is placed on the windows form. And the Avi file will be played when the form is loaded. Here the file path of the Avi file is assigned to the file name property of the animation control. My problem is I want to make the program work when the program is deployed on different machines where the file path will be different. I am placing the Avi file the with in the project folder it self. Is ther any method to get the project folder path so that i can append the path to the file name. Please help me sukanyavarma
-
Hai all, In my program an animation control is placed on the windows form. And the Avi file will be played when the form is loaded. Here the file path of the Avi file is assigned to the file name property of the animation control. My problem is I want to make the program work when the program is deployed on different machines where the file path will be different. I am placing the Avi file the with in the project folder it self. Is ther any method to get the project folder path so that i can append the path to the file name. Please help me sukanyavarma
Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "my.avi"); Christian Graus - Microsoft MVP - C++
-
Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "my.avi"); Christian Graus - Microsoft MVP - C++
Thank You Christian Graus, It is working. Thanks for your help. I am a bignner in .net my learning curve is becoming lot more steeper because of the people like You and the code project. Thanks a lot to all you people for your generous responces. Sukanyavarma