To search and copy from server
-
You can search for a file.using Directory.GetFiles(FileName,SearchPattern); And copy to local system using ftp request and response classes in System.Net. Mean while what is your application is a client server apps or a web applicaiton ?
-
You can search for a file.using Directory.GetFiles(FileName,SearchPattern); And copy to local system using ftp request and response classes in System.Net. Mean while what is your application is a client server apps or a web applicaiton ?
My application is to search the particular element from an xml file and to search a file with that name in server. and i have to copy the same file to my local disk. I tried to searc using
using Directory.GetFiles(FileName,SearchPattern);
but it is not at all serching. -
My application is to search the particular element from an xml file and to search a file with that name in server. and i have to copy the same file to my local disk. I tried to searc using
using Directory.GetFiles(FileName,SearchPattern);
but it is not at all serching. -
My application is to search the particular element from an xml file and to search a file with that name in server. and i have to copy the same file to my local disk. I tried to searc using
using Directory.GetFiles(FileName,SearchPattern);
but it is not at all serching.P_Elza wrote:
not at all serching
Hope you are checking if the directory is existing using Directory.Exists ?
P_Elza wrote:
search the particular element from an xml file
Are the innertext's value assigned to the intended variables? Probably debugging the app will help you understand where it fails.
-
P_Elza wrote:
not at all serching
Hope you are checking if the directory is existing using Directory.Exists ?
P_Elza wrote:
search the particular element from an xml file
Are the innertext's value assigned to the intended variables? Probably debugging the app will help you understand where it fails.
Tis is working if the file is in my hard disk itself. but not when it comes to server. If i map the server i can search.like
y:\\my folder\\myfolder
am tring to make an exe. different people will map to different drive. so i cant give like that.should give like\\server\\serverfolde\\folder\\
-
hi you can take the toolbox from openfiledialogbox1
-
hi you can take the toolbox from openfiledialogbox1
-
Tis is working if the file is in my hard disk itself. but not when it comes to server. If i map the server i can search.like
y:\\my folder\\myfolder
am tring to make an exe. different people will map to different drive. so i cant give like that.should give like\\server\\serverfolde\\folder\\
Well, that will never work because a server must start with a double slash, so in your syntax this would be \\\\server\\serverfolde\\folder\\. You can, of course, prefix this with the @ sign so this becomes @"\\server\serverfolde\folder\". Now, your application will need to have permissions to work with these folders - make sure that it has the permissions to do this.
Deja View - the feeling that you've seen this post before.