|
|
i want to copy a file from a location to some specific location in c#?
|
|
|
|
|
Have you tried
System.IO.File.Copy("Source", "Destination"); Docs on MSDN[^]
Simon
|
|
|
|
|
Simon Stevens wrote: System.IO.File.Copy("Source", "Destination");
Hey I tried it but I got FileNotFoundException. Can u plz e-mail me full project at troll@hotmail.com ? It's very urgntz. Thanks
|
|
|
|
|
|
You should have guessed that it's not he because I said 'Thanks' while he uses[^] 'thx'
|
|
|
|
|
I spotted that. A dead give-away.
7r01z can't write out the word "thanks" without bursting. It's like trolls and sunshine...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Giorgi Dalakishvili wrote: Will it work?
Probably not.
Simon
|
|
|
|
|
thx budy, its working
Maifs
|
|
|
|
|
You need to copy a file so why don't you Google or search msdn? Is it so difficult?
|
|
|
|
|
no, i didnt find it,
thx
Maifs
|
|
|
|
|
|
|
And there is a point to this post? Have you tried MSDN, Google, or even (heaven forbid) press F1 while in the ide?
I think you are in the wrong job if you are unable to do something this simple without posting to a forum.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I am facing simlar problem here. If you get it, plz send me also. my email is chandu_reddy86@yahoo.com. Please send
|
|
|
|
|
hi
man read first one ansers to search from googles.this is not a place of doing such questions.
read that articles in my replies then you can find your anser.
thry this one.
System.IO.File.Copy("C:\\abc.txt", "D:\\abc.txt");
and make sure the file is exist on c drive, if not then create a text file
named abc and save on c drive.
Maifs
|
|
|
|
|
Just post your bank account details and I'll email you all the codez you want as urgntz as you can take them. (I'm not joking. I'm serious. Just post them. I won't charge too much )
Alternatively, you can read the responses that are already here and stop wasting everyone's time.
Simon
|
|
|
|
|
Simon Stevens wrote: Alternatively, you can read the responses that are already here and stop wasting everyone's time
or just try a career change
Bob
Ashfield Consultants Ltd
|
|
|
|
|
can any body give me Idea about linq in VS 2008
|
|
|
|
|
Yes, there are thousands of articles. Try Google.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
MSDN - LINQ[^]
Wikipedia - LINQ[^]
LINQ is part of .net 3.5 which comes with VS 2008.
it provides an integrated query language for performing searches and sorts on collections.
various providers also allow LINQ to be used for the same operations over SQL connections and XML files. (Linq-to-sql and Linq-to-xml). (And with SP1, entities in the entity framework (linq-to-entities).
What is it you want to do with it?
Simon
|
|
|
|
|
Scott Gu[^] has nice introductory articles at his blog.
|
|
|
|
|
I'm writing a window application were I would need to use tab page as an template to be used multiple times.
I need an advice as to the best way to do it.
Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?
10x,
|
|
|
|
|
Inbaljona wrote: Is it better to create a dialog and insert it into a new tab or create a tab page as a different form/class?
I'm not sure what you mean by "creating a dialog and inserting into a new tab".
I would create a base 'PageTemplate' class (inheriting from UserControl) that defined the template, and then have a class for each page that inherited from this base, and added the extras.
Simon
|
|
|
|