Reputation: 1
I am using swf inside c# application. the problem is that, when I determine the path of swf file as static path "c:\path" , the file is worked. otherwise the file doesn't work. I want to put the swf file inside the folder of application and run it in many devices.
Upvotes: 0
Views: 362
Reputation: 51
if it is windows form application, you can define a working directory path as below
private static string workingDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
by adding folder names you can access the folder you defined.
for example you can define path for swf files as below
string swfPath = workingDirectory + @"\SWFFILES"
Upvotes: 2
Reputation: 1647
This should give you the physical path to the virtual path of your web app. You can then append the swf filename to the end:
String path = Server.MapPath("swffolder\\");
Upvotes: 0