K
karen.mcdonagh
I am trying to copy a file with a css extension using the following
code
if (!DoesDirectoryExists(sLocation))
{
//Create the directory
Directory.CreateDirectory(sLocation);
}
FileInfo test = new FileInfo(sFile);
test.CopyTo(sLocation, true);
The location is c:\test.css and the location is c:\test2\test.css
After running this code a directory called test.css is created and no
file is copied.
Any help on this would be greatly appreciated
Thanks
Karen
code
if (!DoesDirectoryExists(sLocation))
{
//Create the directory
Directory.CreateDirectory(sLocation);
}
FileInfo test = new FileInfo(sFile);
test.CopyTo(sLocation, true);
The location is c:\test.css and the location is c:\test2\test.css
After running this code a directory called test.css is created and no
file is copied.
Any help on this would be greatly appreciated
Thanks
Karen