Click here to Skip to main content
15,886,742 members
Home / Discussions / C#
   

C#

 
GeneralRe: sql express installing when I call it from my program, but does not work!! Pin
lourensG11-Aug-10 20:54
lourensG11-Aug-10 20:54 
GeneralRe: sql express installing when I call it from my program, but does not work!! Pin
Dave Kreskowiak12-Aug-10 2:11
mveDave Kreskowiak12-Aug-10 2:11 
Questionarray to array copy Pin
varsh1211-Aug-10 0:12
varsh1211-Aug-10 0:12 
AnswerRe: array to array copy Pin
Nuri Ismail11-Aug-10 0:24
Nuri Ismail11-Aug-10 0:24 
AnswerRe: array to array copy Pin
PIEBALDconsult11-Aug-10 3:08
mvePIEBALDconsult11-Aug-10 3:08 
QuestionMoving the multiple files from one to another location Pin
annie_bel10-Aug-10 23:33
annie_bel10-Aug-10 23:33 
AnswerRe: Moving the multiple files from one to another location Pin
Nuri Ismail10-Aug-10 23:48
Nuri Ismail10-Aug-10 23:48 
AnswerRe: Moving the multiple files from one to another location Pin
Islorvat11-Aug-10 0:51
Islorvat11-Aug-10 0:51 
Here is how i would do it:

foreach (string f in Directory.GetFiles(@"C:\MyFolder"))
 {
     if (f.EndsWith(".xml"))
     {
         string currentf = f.Substring(f.LastIndexOf('\\') + 1);
         File.Move(f, @"C:\MyFolder\MyXmlFolder\" + currentf);
     }
 }


It iterates through every file in MyFolder and if it's an xml then move it to MyXmlFolder.
GeneralRe: Moving the multiple files from one to another location [modified] Pin
annie_bel11-Aug-10 1:26
annie_bel11-Aug-10 1:26 
GeneralRe: Moving the multiple files from one to another location Pin
annie_bel11-Aug-10 1:56
annie_bel11-Aug-10 1:56 
AnswerRe: Moving the multiple files from one to another location Pin
Luc Pattyn11-Aug-10 1:39
sitebuilderLuc Pattyn11-Aug-10 1:39 
QuestionDesign-Time editor for Custom object stores value into *.resx with $ variable prefix Pin
Bouditch10-Aug-10 23:01
Bouditch10-Aug-10 23:01 
QuestionECG wave extraction Pin
biaali10-Aug-10 22:56
biaali10-Aug-10 22:56 
AnswerRe: ECG wave extraction Pin
riced11-Aug-10 1:01
riced11-Aug-10 1:01 
Question.net remoting Pin
Member 59031010-Aug-10 20:01
Member 59031010-Aug-10 20:01 
Questioninstall sql server 2005 Pin
ram_kesari10-Aug-10 17:26
ram_kesari10-Aug-10 17:26 
AnswerRe: install sql server 2005 Pin
Luc Pattyn10-Aug-10 17:52
sitebuilderLuc Pattyn10-Aug-10 17:52 
AnswerRe: install sql server 2005 Pin
Abhinav S10-Aug-10 18:07
Abhinav S10-Aug-10 18:07 
QuestionHelp: Can't format string using String.Format Pin
roman_s10-Aug-10 9:17
roman_s10-Aug-10 9:17 
AnswerRe: Help: Can't format string using String.Format Pin
Ennis Ray Lynch, Jr.10-Aug-10 9:29
Ennis Ray Lynch, Jr.10-Aug-10 9:29 
AnswerRe: Help: Can't format string using String.Format Pin
OriginalGriff10-Aug-10 9:32
mveOriginalGriff10-Aug-10 9:32 
AnswerRe: Help: Can't format string using String.Format Pin
Luc Pattyn10-Aug-10 9:34
sitebuilderLuc Pattyn10-Aug-10 9:34 
AnswerRe: Help: Can't format string using String.Format Pin
ignrod10-Aug-10 9:42
ignrod10-Aug-10 9:42 
AnswerRe: Help: Can't format string using String.Format Pin
Martin shooster10-Aug-10 10:17
Martin shooster10-Aug-10 10:17 
AnswerRe: Help: Can't format string using String.Format Pin
PIEBALDconsult10-Aug-10 17:24
mvePIEBALDconsult10-Aug-10 17:24 

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.