• Post Reply Bookmark Topic Watch Topic
  • New Topic

How I can Prevent when file in use??  RSS feed

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all friends,
I am facing problem with my uploading software it is a automatic process of uploading only user copy the file in hot folder of my software and software takes the file one by one automatically and start uploading on destination and it also shows the name and size of file on text area of my swing my interface for user information which file it is uploading.Now my problem is when user copy the file from network computer in that folder in between copy my software shows the file name and size(which is incomplete size)on text area of swing interface and after completion of copy it shows the complete size and name of same file again.But it couldn't read the file coz sharing violation.My software checks its folder for file every after 30 seconds and I have done it by therads.I want to prevent my software so that it can't take the file name and size in between copy of that file means it can't show name and size of incomplete file.Can any one plz guide me how i can do that.Iam pasting those portion of my codes:-

Regards
Bikash
[ May 18, 2003: Message edited by: Bikash Paul ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!