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

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

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