13-07-22 12:50 AM
try {
errorMessage = "";
InstanceFullFilePath = "";
string InstanceFile = InstanceFileNameWithoutExtension+Path.GetExtension(TemplateFileNameWithExtension);
string templateFilePath = Path.Combine(TemplateDirectory,TemplateFileNameWithExtension);
InstanceFullFilePath = Path.Combine(InstanceDestinationFolderPath,InstanceFile);
File.Copy(templateFilePath,InstanceFullFilePath,true);
} catch (Exception ex) {
errorMessage = ex.Message;
}
13-07-22 01:03 AM
try {
errorMessage = "";
string InstanceFile = InstanceFileNameWithoutExtension+Path.GetExtension(TemplateFileNameWithExtension);
string templateFilePath = Path.Combine(TemplateDirectory,TemplateFileNameWithExtension);
InstanceFullFilePath = Path.Combine(InstanceDestinationFolderPath,InstanceFile);
File.Copy(templateFilePath,InstanceFullFilePath,true);
} catch (Exception ex) {
errorMessage = ex.Message;
InstanceFullFilePath = "";
}