G
Guest
Hi!
I am using CF SP3 and C# for my application. As soon as the application
launches, I perform a check if all the required files exist in the
Application folder. I use:
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase)
to get the Application folder.
Now I also want to check some files in the Windows folder on the device. One
of the files I want to look for is "System.Data.SqlClient.dll" but this
appears as "GAC_System.Data.SqlClient_v1_0_5000_0_cneutral_1.dll" in the
Windows folder. Currently I am using:
string windowsFolderpath = @"\windows\";
File.Exists(windowsFolderpath + fileName);
1.Is there a way that I can use wildcards in the filename so that I can look
for "GAC_System.Data.SqlClient*.dll"?
2. What is the significance of the string "_v1_0_5000_0_cneutral_1" in the
filename? Does this ever change or can I assume that it won't change?
3. Is there any other way to find if specific files exist in the windows
folder?
I will appreciate if anyone can suggest something about this or cite some
examples.
Thank you for your time.
Regards,
Raj
I am using CF SP3 and C# for my application. As soon as the application
launches, I perform a check if all the required files exist in the
Application folder. I use:
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase)
to get the Application folder.
Now I also want to check some files in the Windows folder on the device. One
of the files I want to look for is "System.Data.SqlClient.dll" but this
appears as "GAC_System.Data.SqlClient_v1_0_5000_0_cneutral_1.dll" in the
Windows folder. Currently I am using:
string windowsFolderpath = @"\windows\";
File.Exists(windowsFolderpath + fileName);
1.Is there a way that I can use wildcards in the filename so that I can look
for "GAC_System.Data.SqlClient*.dll"?
2. What is the significance of the string "_v1_0_5000_0_cneutral_1" in the
filename? Does this ever change or can I assume that it won't change?
3. Is there any other way to find if specific files exist in the windows
folder?
I will appreciate if anyone can suggest something about this or cite some
examples.
Thank you for your time.
Regards,
Raj