I am currently trying to make a small application that distributes images from the main source folder to other folders on computers on the network, but all the other computers folders need login credentials which I am currently storing them in SQL.
here is a look over my needed line:
fileCount = Directory.GetFiles(My.Settings.path212 + "\", "*.jpg", SearchOption.TopDirectoryOnly).Length()
As you can see I need to read the files count in each folder I am accessing. And currently, i cannot find a way to use the same function while providing the credentials stored in SQL.
Update#1: I didnt mention that maping drives cannot be used because of domain policy.