Click here to Skip to main content
15,888,980 members
Home / Discussions / C#
   

C#

 
QuestionSearch GUI to configurate Log4Net! Pin
T-Bear198716-Sep-07 23:25
T-Bear198716-Sep-07 23:25 
QuestionIntractivity with ms word?? Pin
Muammar©16-Sep-07 22:59
Muammar©16-Sep-07 22:59 
AnswerRe: Intractivity with ms word?? Pin
Pete O'Hanlon16-Sep-07 23:20
mvePete O'Hanlon16-Sep-07 23:20 
GeneralRe: Intractivity with ms word?? Pin
Muammar©17-Sep-07 0:55
Muammar©17-Sep-07 0:55 
QuestionWriting into an unmanaged buffer and marshalling it Pin
Leonardo Pelisoli16-Sep-07 22:46
Leonardo Pelisoli16-Sep-07 22:46 
GeneralBump Pin
Leonardo Pelisoli19-Sep-07 11:59
Leonardo Pelisoli19-Sep-07 11:59 
AnswerRe: Writing into an unmanaged buffer and marshalling it Pin
Leonardo Pelisoli21-Sep-07 5:37
Leonardo Pelisoli21-Sep-07 5:37 
QuestionTo copy file from server..... Pin
P_Elza16-Sep-07 22:46
P_Elza16-Sep-07 22:46 
I want to search a file from server and want to copy it to the local disk.
how it is done? This 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:\\serverfolde\\folder 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\\ but it is not working.
My code is
<br />
searchfolder="y:\\Template\\else";<br />
				destination ="D:\\Princy\\My Documents\\project\\";<br />
				string source=searchfolder+"\\"+"mod501_"+filetosearch+".3d";<br />
				string target=destination+"mod501-"+filetosearch+".3d";<br />
				string[] files = Directory.GetFiles(searchfolder, "mod501_"+filetosearch+".3d");<br />
				//string[] files = Directory.GetFiles(searchfolder, filetosearch+"*");<br />
				if(files.Length==1)<br />
				{<br />
					foreach (string dir in files) <br />
					{<br />
						lblcnt.Text="Selected File: "+ dir;<br />
						string[] search = Directory.GetFiles(destination,"mod501-"+filetosearch+".3d");<br />
						if(search.Length>0)<br />
						{<br />
							lblcnt.Visible=true;<br />
							lblcnt.Text="File already exist";<br />
						}<br />
						else<br />
						{<br />
							File.Copy(source,target);<br />
							lblcnt.Visible=true;<br />
							lblcnt.Text="File copied";<br />
						}<br />
					}<br />

what to give insted of
searchfolder="y:\\Template\\else";

If am using
searchfolder="@books\\template\\Template\\else";
am geting error:
System.IO.DirectoryNotFoundException:Could not find a part of the "@books\template\Template\els".
Otherwise its working perfectly.
AnswerRe: To copy file from server..... Pin
Pete O'Hanlon16-Sep-07 23:17
mvePete O'Hanlon16-Sep-07 23:17 
QuestionRegarding Application Pool Pin
ngrj16-Sep-07 22:02
ngrj16-Sep-07 22:02 
AnswerRe: Regarding Application Pool Pin
Pete O'Hanlon17-Sep-07 1:45
mvePete O'Hanlon17-Sep-07 1:45 
GeneralRe: Regarding Application Pool Pin
ngrj17-Sep-07 17:05
ngrj17-Sep-07 17:05 
Questionstreamwriter Pin
troubled one16-Sep-07 21:56
troubled one16-Sep-07 21:56 
AnswerRe: streamwriter Pin
Pete O'Hanlon16-Sep-07 22:33
mvePete O'Hanlon16-Sep-07 22:33 
GeneralRe: streamwriter Pin
troubled one17-Sep-07 21:45
troubled one17-Sep-07 21:45 
AnswerRe: streamwriter Pin
N a v a n e e t h16-Sep-07 23:12
N a v a n e e t h16-Sep-07 23:12 
GeneralRe: streamwriter Pin
Giorgi Dalakishvili16-Sep-07 23:27
mentorGiorgi Dalakishvili16-Sep-07 23:27 
GeneralRe: streamwriter Pin
N a v a n e e t h16-Sep-07 23:37
N a v a n e e t h16-Sep-07 23:37 
AnswerRe: streamwriter Pin
blackjack215017-Sep-07 1:14
blackjack215017-Sep-07 1:14 
QuestionReducing the encrypted text size. Pin
M. J. Jaya Chitra16-Sep-07 21:33
M. J. Jaya Chitra16-Sep-07 21:33 
AnswerRe: Reducing the encrypted text size. Pin
Sathesh Sakthivel16-Sep-07 21:52
Sathesh Sakthivel16-Sep-07 21:52 
GeneralRe: Reducing the encrypted text size. Pin
M. J. Jaya Chitra16-Sep-07 22:13
M. J. Jaya Chitra16-Sep-07 22:13 
AnswerRe: Reducing the encrypted text size. Pin
Colin Angus Mackay16-Sep-07 21:54
Colin Angus Mackay16-Sep-07 21:54 
GeneralRe: Reducing the encrypted text size. Pin
M. J. Jaya Chitra17-Sep-07 0:02
M. J. Jaya Chitra17-Sep-07 0:02 
GeneralRe: Reducing the encrypted text size. Pin
Dan Neely17-Sep-07 3:11
Dan Neely17-Sep-07 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.