Sharing violation on file deletion

V

VanS

Hello,
I have an app that uses a VB6 front end to an Excel/Word VBA app.When the vb
part starts up it searches for Excel, Word and VB temp files and deletes
them. This has worked fine before including on my Win XP SP1 Pro/Office 2003
machine. But when I run it under a Virtual PC testbed of Win 2K/Office 2K
it's giving me errors.
When I run it under the exe or debug I get a "Run-time error 70. Permission
denied" as it tries to programmatically delete the Word temp files.
When I try to manually delete the Word temp file it gives an "Error deleting
File or Folder: Cannot delete (temp file name). There has been a sharing
violation. The source or destination file may be in use." Read only is not
set.
Task manager shows no open programs or processes for Word or Excel that I
can see.
Since it's running under Virtual PC 2004 I am trying to update that to SP1
in case that is issue but am getting versioning error(error code 1638
Error_product-version:Another version of this product is already
installed..etc) on Windows Installer (I have Win XP SP1 so doesn't have the
latest version). But having issues to resolve with that, but not sure the VPC
SP1 is issue or not.

Any idea what wrong or how to fix? Is Win 2K pickier on permissions?
Thanks God bless
Van
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top