File Info Question

  • Thread starter Thread starter Denis Correard
  • Start date Start date
D

Denis Correard

I'm writing an application that would move a file from 1 place to another
and print it, but I'm having errors if the file is in use by another process
when I'm trying to move it. Is there a way to check that before I try to
move the file?

I'm using .Net 1.1, VB and VS 2003

Any ideas are welcome
 
Denis said:
I'm writing an application that would move a file from 1 place to
another and print it, but I'm having errors if the file is in use by
another process when I'm trying to move it. Is there a way to check
that before I try to move the file?

Try to move the file. If you catch an error then perhaps wait a while and
give it another go. Finally, curse it for not offering a function to tell
you what the current access state of the file is.

Would it be sufficient to /copy/ the file to another location to print it?
You have more chance of that succeeding.

Andrew
 
Yes and no because same times to file stil been created on disk so copying
it would not be good.
 

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

Similar Threads


Back
Top