Here is my code:
int numOfLines1 = File.ReadAllLines(@"\\RADSpSC2\ARADA\BACKUP\Outbound\20131203\ECOMMDEMAND_20131202_ASPS.txt").Length;
Console.WriteLine(numOfLines1.ToString());
int numofLines2 = File.ReadAllLines(@"\\RADSpSC2\ARADA\BACKUP\Outbound\20131203\ECOMMDEMAND_20131202_BSPS").Length;
Console.WriteLine(numofLines2.ToString());
Console.ReadLine();
But It is giving me error like logon failure
and bad username or password
. I am trying to enter \\RADSpSC2
server from different server.
So how can It be possible to provide username and password inside the code?