Click here to Skip to main content
15,904,653 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reducing the encrypted text size. Pin
Dan Neely17-Sep-07 3:11
Dan Neely17-Sep-07 3:11 
GeneralRe: Reducing the encrypted text size. Pin
Colin Angus Mackay17-Sep-07 7:03
Colin Angus Mackay17-Sep-07 7:03 
QuestionConverting HTML(WEB Page URL/HTML) to JPG Images Pin
nhss16-Sep-07 21:08
nhss16-Sep-07 21:08 
AnswerRe: Converting HTML(WEB Page URL/HTML) to JPG Images Pin
Niiiissssshhhhhuuuuu16-Sep-07 21:29
Niiiissssshhhhhuuuuu16-Sep-07 21:29 
AnswerRe: Converting HTML(WEB Page URL/HTML) to JPG Images Pin
Giorgi Dalakishvili16-Sep-07 21:41
mentorGiorgi Dalakishvili16-Sep-07 21:41 
QuestionRe: Converting HTML(WEB Page URL/HTML) to JPG Images Pin
nhss16-Sep-07 21:46
nhss16-Sep-07 21:46 
AnswerRe: Converting HTML(WEB Page URL/HTML) to JPG Images Pin
Giorgi Dalakishvili16-Sep-07 21:48
mentorGiorgi Dalakishvili16-Sep-07 21:48 
GeneralRe: Converting HTML(WEB Page URL/HTML) to JPG Images Pin
nhss16-Sep-07 21:52
nhss16-Sep-07 21:52 
QuestionListBox1_SelectedIndexChanged - Event Pin
pavya_Cool16-Sep-07 19:51
pavya_Cool16-Sep-07 19:51 
AnswerRe: ListBox1_SelectedIndexChanged - Event Pin
Paras Kaneriya16-Sep-07 20:16
Paras Kaneriya16-Sep-07 20:16 
GeneralRe: ListBox1_SelectedIndexChanged - Event Pin
pavya_Cool16-Sep-07 20:31
pavya_Cool16-Sep-07 20:31 
GeneralRe: ListBox1_SelectedIndexChanged - Event Pin
Paras Kaneriya17-Sep-07 0:52
Paras Kaneriya17-Sep-07 0:52 
AnswerRe: ListBox1_SelectedIndexChanged - Event Pin
Jintal Patel17-Sep-07 1:31
Jintal Patel17-Sep-07 1:31 
General[Message Deleted] Pin
P_Elza16-Sep-07 19:37
P_Elza16-Sep-07 19:37 
GeneralRe: Plz do help me..................... Pin
Chatura Dilan16-Sep-07 19:44
Chatura Dilan16-Sep-07 19:44 
GeneralRe: Plz do help me..................... Pin
Guffa16-Sep-07 21:00
Guffa16-Sep-07 21:00 
GeneralRe: Plz do help me..................... Pin
Vasudevan Deepak Kumar16-Sep-07 21:14
Vasudevan Deepak Kumar16-Sep-07 21:14 
QuestionHow to make the DLL secure...? Pin
Pankaj - Joshi16-Sep-07 18:55
Pankaj - Joshi16-Sep-07 18:55 
AnswerRe: How to make the DLL secure...? [modified] Pin
ring_016-Sep-07 19:06
ring_016-Sep-07 19:06 
GeneralRe: How to make the DLL secure...? Pin
Pankaj - Joshi16-Sep-07 19:13
Pankaj - Joshi16-Sep-07 19:13 
GeneralRe: How to make the DLL secure...? Pin
ring_016-Sep-07 19:19
ring_016-Sep-07 19:19 
GeneralRe: How to make the DLL secure...? Pin
Pankaj - Joshi16-Sep-07 19:30
Pankaj - Joshi16-Sep-07 19:30 
QuestionPlz help me to copy a file from server to hard disc [modified] Pin
P_Elza16-Sep-07 18:45
P_Elza16-Sep-07 18:45 
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.


-- modified at 4:45 Monday 17th September, 2007
AnswerRe: Plz help me to copy a file from server to hard disc Pin
ChrisKo17-Sep-07 10:30
ChrisKo17-Sep-07 10:30 
QuestionWeb Services: How to change http header of the request Pin
mishakogan16-Sep-07 18:36
mishakogan16-Sep-07 18:36 

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.