1
例如,我如何将文件复制到c:/从我的资源文件中? 我发现similiar问题在:What is the file path, as a string, of a file in the application's resources?但它说:“错误2参数2:不能从转换‘的byte []’到‘字符串’”什么是资源中某个文件的路径?
这里是我当前的代码,这是失败的:
System.IO.File.Copy("C:\\", ctest.Properties.Resources.test);
测试是该文件。
哦,谢谢你,我现在看到。我应该给延伸以及... – Foresp 2011-05-14 22:05:01
哦,等待,我如何移动图片(JPG)和(EXE)文件? – Foresp 2011-05-14 22:06:30
问题不是关于扩展名'File.Copy'需要文件名,而'ctest.Properties.Resources.test'是资源中文件的'byte []'内容。 – 2011-05-14 22:07:28