Click here to Skip to main content
15,917,061 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to stop a windows service in Visual Studio 2003 Pin
TimFoxell17-Sep-07 1:25
TimFoxell17-Sep-07 1:25 
QuestionA listview-like control for displaying log messages? Pin
Domenic Denicola17-Sep-07 0:17
Domenic Denicola17-Sep-07 0:17 
AnswerRe: A listview-like control for displaying log messages? Pin
Pete O'Hanlon17-Sep-07 1:42
mvePete O'Hanlon17-Sep-07 1:42 
Questionhow to get email address in microsoft exchange server? [modified] Pin
goldenchance17-Sep-07 0:02
goldenchance17-Sep-07 0:02 
AnswerRe: how to get email address in microsoft exchange server? Pin
Corinna John17-Sep-07 4:23
Corinna John17-Sep-07 4:23 
GeneralRe: how to get email address in microsoft exchange server? [modified] Pin
goldenchance17-Sep-07 15:50
goldenchance17-Sep-07 15:50 
GeneralRe: how to get email address in microsoft exchange server? Pin
Corinna John19-Sep-07 8:56
Corinna John19-Sep-07 8:56 
QuestionStop timer Pin
andredani16-Sep-07 23:56
andredani16-Sep-07 23:56 
AnswerRe: Stop timer Pin
Martin#17-Sep-07 0:11
Martin#17-Sep-07 0:11 
AnswerRe: Stop timer Pin
Giorgi Dalakishvili17-Sep-07 0:14
mentorGiorgi Dalakishvili17-Sep-07 0:14 
GeneralRe: Stop timer Pin
blackjack215017-Sep-07 1:10
blackjack215017-Sep-07 1:10 
QuestionDataGridView Pin
DeepOceans16-Sep-07 23:51
DeepOceans16-Sep-07 23:51 
AnswerRe: DataGridView Pin
Giorgi Dalakishvili17-Sep-07 0:15
mentorGiorgi Dalakishvili17-Sep-07 0:15 
AnswerRe: DataGridView Pin
Imran Khan Pathan17-Sep-07 2:00
Imran Khan Pathan17-Sep-07 2:00 
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 

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.