Click here to Skip to main content
15,914,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
one server (local system)- sw3 or Ip-192.168.0.132
another server (server system)- ds1 or Ip - 192.168.0.104
sharefolder name -sss
It is working fine when i am using share folder,
This is my code :
C#
string folderName = @"\\192.168.0.104\\sss\newfoldername\\";

            System.IO.Directory.CreateDirectory(folderName);

            
            string newFileName = System.IO.Path.GetRandomFileName();
            string newPath;
            
            newPath = System.IO.Path.Combine(folderName, newFileName);

How it will happen without share folder .
Posted

1 solution

 
Share this answer
 
Comments
kumar bapuna 17-Apr-12 6:41am    
I dont want share folder,
Thanks for your reply,give me right suggestions

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900