We have a application hosted in some other server located in another country, I am going to use that application from different country, while using that application i want to check the user's machine local 'C' drive particular path is having that file is exist or not.
How to achieve this from C# or Javascript?
From the C#
byte[] contents = null;
if (File.Exists("C:\Program Files (x86)\Fruit\fruitList.txt"))
{
using (FileStream fileStream = File.OpenRead(scannedFile))
{
contents = new byte[fileStream.Length];
}
}
but that mentioned 'C' drive path is searching in IIS server only (where we hosted the application). But i want to check in client (user's) machine.
I couldn't find a code in Javascript.
Please help me, to achieve the expected result.
Thank you.