SOS!! 关于文件移动及操作的问题,肯请各位高手帮忙。
想将一些文件从一个文件夹中读到另一个文件夹中,同时再将文件保存到数据库中,在做操作时我使用了System.IO.File.Move(),然后再对文件读入到数据库中,文件移动没有问题,但随后做的读取时,提示文件被另一个进程使用,不能进行操作,遇到此问题如何解决,请高手赐教!!!
------解决方案--------------------Move不会产生对文件的占有操作 你检查下你代码的其他地方是否打开了文件
------解决方案--------------------给你顶一下   
 顺便  
 http://community.csdn.net/Expert/topic/5326/5326310.xml?temp=.9386103
------解决方案--------------------worddoc.Close(ref Nothing,ref Nothing,ref Nothing); 
 wordapp.Quit(ref Nothing,ref Nothing,ref Nothing); 
 因该能关掉啊 
 你调调看代码能走道这两行么 
 最好放到 
 try 
 { 
 } 
 finally 
 { 
 } 
 里面看看
------解决方案--------------------worddoc.Close(ref Nothing,ref Nothing,ref Nothing); 
 worddoc = null; 
 wordapp.Quit(ref Nothing,ref Nothing,ref Nothing); 
 wordapp = null;