本文介绍了图像不能从文件夹中删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我从文件夹中删除图像时错误信息是
(因为它正由另一个进程使用)。
我尝试过的事情:
When i delete image from folder "Error Message is
(Because it is being used by another process).
What I have tried:
Dim Get_Image_From_Product_Image As New SqlCommand("SELECT Business_Image FROM ImageDB.dbo.Administrator_Account Where Employee_Code = '" & CmbUserCode & "'", sqlcon)
Dim Get_Image_FromProduct_Image = Get_Image_From_Product_Image.ExecuteScalar().ToString()
PicturePath = Application.StartupPath & "\Product_Image"
System.IO.File.Delete(PicturePath & "\" & Get_Image_FromProduct_Image)
推荐答案
这篇关于图像不能从文件夹中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!