| Author: vipul 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi, Please provide code here so can check that code and give solution for your query.
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: Anuraj 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
The Copy Method contains an Overwrite parameter.
Thanks Anuraj THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS. BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT. dotnetthoghts
|
| Author: Anil Kumar Pandey 05 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
hi,
simply use the Over write option for the same, or delete the file before it created..
if (File.Exists(strLogFile)) { File.Delete(strLogFile); }
Thanks & Regards Anil Kumar Pandey
|
| Author: Pannalal Sinha 05 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Microsoft.VisualBasic.FileIO.FileSystem.CopyFile(sourcefilename,destinationfilename,true); //true for overwrite
Thanks Panna
|
| Author: yugandherReddy 10 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
use the following line..
File.Copy(@"C:\Xcalibur\tmuninst.ini", @"C:\Xcalibur\data\tmuninst.ini",true);
|