Copy resources from c# pjct to a windows directory -


how can copy file in project resources temp directory using c# "i have install.bat file in project resources folder want copy c:\ directory "

file.copy(@"resources\install.bat", @"c:\directory\install.bat"); 

note: should have resources folder in debug\bin. (if there isn't one, click on property of install.bat file in visual studio solution exprorer , set 'copy output directory' 'copy always'


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -