>
解决方案1这种应该做一下文件路径directory.exists的判断directory.exists,如果文件存在,再进入播放引用命名空间using SystemIO对文件是否判断进行判断,如果存在再进入播放的方法string path = @quotD\1wavquot if DirectoryExistspath 需要执行的内容 2针对这种错误,进行异常捕获,写入到错误。

DirectoryExistspath1创建文件夹DirectoryCreateDirectorypath1在下面添加文件创建代码如 FileCreatepath1,bufferSize,FileOptionsAsynchronousbufferSize读写的缓冲区字节 int 型,Asynchronous异步读取和写入ltappSettingsltadd key=quotYourdirectorynamequot value=quotc\temp\quotlt。
这是我做的用来上传Excel文件的,你改一下就行了,测试通过 上传Excel文件 public void Inv_inport string filename = FilePathFileNamestring path = ServerMapPathquot文件夹名quotif !DirectoryExistspath判断存不存在path文件 DirectoryCreateDirectorypath不存在时。

相关标签 :
上一篇: 云狐a7,云狐a7黄金版价格
下一篇: abr,abr是什么检查
微信医疗(登记+咨询+回访)预约管理系统
云约CRM微信小程序APP系统定制开发
云约CRM体检自定义出号预约管理系统
云约CRM云诊所系统,云门诊,医疗预约音视频在线问诊预约系统
云约CRM新版美容微信预约系统门店版_门店预约管理系统
云约CRM最新ThinkPHP6通用行业的预约小程序(诊所挂号)系统联系电话:18300931024
在线QQ客服:616139763
官方微信:18300931024
官方邮箱: 616139763@qq.com