Click here to Skip to main content
15,902,299 members
Home / Discussions / C#
   

C#

 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:49
hairy_hats12-Jun-09 4:49 
QuestionMCE Remote Controller Pin
ryan11712-Jun-09 2:46
ryan11712-Jun-09 2:46 
QuestionWMI Pin
arkiboys12-Jun-09 2:36
arkiboys12-Jun-09 2:36 
AnswerRe: WMI Pin
Dave Kreskowiak12-Jun-09 5:18
mveDave Kreskowiak12-Jun-09 5:18 
GeneralRe: WMI Pin
arkiboys12-Jun-09 8:08
arkiboys12-Jun-09 8:08 
GeneralRe: WMI Pin
Dave Kreskowiak12-Jun-09 11:15
mveDave Kreskowiak12-Jun-09 11:15 
GeneralRe: WMI [modified] Pin
arkiboys14-Jun-09 20:31
arkiboys14-Jun-09 20:31 
Questioncannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo12-Jun-09 2:01
Adekolurejo12-Jun-09 2:01 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Nagy Vilmos12-Jun-09 2:26
professionalNagy Vilmos12-Jun-09 2:26 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 2:37
Rob Philpott12-Jun-09 2:37 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 3:49
mvePIEBALDconsult12-Jun-09 3:49 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 4:12
Rob Philpott12-Jun-09 4:12 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 9:21
mvePIEBALDconsult12-Jun-09 9:21 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 23:17
Rob Philpott12-Jun-09 23:17 
QuestionFileWather Path Error [modified][Solved] Pin
MumbleB12-Jun-09 1:58
MumbleB12-Jun-09 1:58 
Hi Guys. I have written a Windows Service with a FileWatcher. Now, when there are new files in the directory it picks the files up fine but when it has to copy then out into a new directory I get an error of The given path's format is not supported. Below is the copy function.

try
{
    string path = fsw.Path;
    string outPath = "C:\\TestDir2\\";
    char[] trimchars = new char[] { '.', 't', 'x', 't' };
    DirectoryInfo dinfo = new DirectoryInfo(path);
    foreach (FileInfo finfo in dinfo.GetFiles("*.*"))
    {
        File.Copy(finfo.FullName, outPath + finfo.FullName, true);
    }
}


It stops on the line: FIle.Copy(finfo.FullName, outPath + finfo.FullName, true);. Anybody have any ideas?

Excellence is doing ordinary things extraordinarily well.

modified on Friday, June 12, 2009 8:26 AM

AnswerRe: FileWather Path Error Pin
_AnsHUMAN_ 12-Jun-09 2:02
_AnsHUMAN_ 12-Jun-09 2:02 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:09
MumbleB12-Jun-09 2:09 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 2:17
professionalNagy Vilmos12-Jun-09 2:17 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:28
MumbleB12-Jun-09 2:28 
GeneralRe: FileWather Path Error Pin
Nagy Vilmos12-Jun-09 2:39
professionalNagy Vilmos12-Jun-09 2:39 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:48
MumbleB12-Jun-09 2:48 
QuestionFocus on a searched text in richtextbox Pin
rakeshs31212-Jun-09 1:55
rakeshs31212-Jun-09 1:55 
AnswerRe: Focus on a searched text in richtextbox Pin
Luc Pattyn12-Jun-09 2:34
sitebuilderLuc Pattyn12-Jun-09 2:34 
GeneralRe: Focus on a searched text in richtextbox Pin
Nagy Vilmos12-Jun-09 2:37
professionalNagy Vilmos12-Jun-09 2:37 
GeneralRe: Focus on a searched text in richtextbox Pin
Luc Pattyn12-Jun-09 3:11
sitebuilderLuc Pattyn12-Jun-09 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.