|
Title: Folder Watching Post by: HappyFace on July 04, 2008, 06:01:12 PM *****************
Folder watcher demo Do not distribute without the author(s) permission! ***************** By: deAppel - www.engineeringserver.com Contact: info [ @ ] engineeringserver.com Version: 04/07/2008 ***************** Drag & drop your text files here: c:\demo\unprocessed\ There are no files waiting to be processed. --- I wrote this demo just a moment ago after reading a topic here: http://www.javaprogrammingforums.com/new-java/70-folder-watching.html Since i was bored i've coded it myself so here it is: http://engineeringserver.com/Software/FileProcessor_v1.rar For those that want to parse their files their own way, just write your own ProcessFile that takes 2 arguments --> from / to and code whatever processing features you want in the ProcessFile. Title: Re: Folder Watching Post by: HappyFace on July 06, 2008, 04:34:14 PM Screenshot:
(http://www.engineeringserver.com/blog/wp-content/uploads/2008/07/screenshot.png) Title: Re: Folder Watching Post by: jazz2k8 on July 07, 2008, 08:53:33 AM There is a bug in this....that is when i tried first time .txt fies are loading and copying into ProcessDir Perfectly but if you see the copied files in ProcessDirFiles,they are not containing the original data.....the data is varying from the original data(UnProcessDir).
Even i tried with .tif loading they are also copying but not opening the size is varying.if i give 80kb .tif file it will be 20kb .tif not able to open it.can you check your code once.If you ant i will upload my screen shots. Thnks for your time and work. Title: Re: Folder Watching Post by: HappyFace on July 07, 2008, 08:57:15 AM There is a bug in this....that is when i tried first time .txt fies are loading and copying into ProcessDir Perfectly but if you see the copied files in ProcessDirFiles,they are not containing the original data.....the data is varying from the original data(UnProcessDir). Even i tried with .tif loading they are also copying but not opening the size is varying.if i give 80kb .tif file it will be 20kb .tif not able to open it.can you check your code once.If you ant i will upload my screen shots. Thnks for your time and work. It currently only works with text files because tiff files are encoded differently but i can look into that later. As for the "Hi, hello, how are you" problem: i'll look into it right now. Title: Re: Folder Watching Post by: HappyFace on July 07, 2008, 09:09:12 AM Fixed: removed the "extra" line that was added at the end of the file. Thanks for finding out that bug, I didn't noticed it myself. :033:
New download link: http://engineeringserver.com/Software/FileProcessor_v2.rar Title: Re: Folder Watching Post by: HappyFace on July 07, 2008, 03:32:22 PM I just released a new version 1.4
- added logfiles with the processed file(s) - added a console message that the files can be processed or not - will create the directories automatically if the directories do not exist - the application uses 3 directories: processed, unprocessed and log - refactored my code for better readability I'll post a dl link later when I have the time to pack the application into one package. (http://Screenshots) (http://img440.imageshack.us/img440/3452/58335107bx7.png) (http://img247.imageshack.us/img247/5254/31890591hv7.png) (http://img440.imageshack.us/img440/334/94632487zd4.png) (http://img440.imageshack.us/img440/3637/92675709ls6.png) Title: Re: Folder Watching Post by: HappyFace on July 10, 2008, 06:15:26 AM [Update]
I'm currently working on processing image files. The images that are processed will contain custom text that is added on the footer of the image. All the images that are processed can be seen by using the web front by accessing the php file. (Still working on it) I'll release a demo or screenhot soon. Title: Re: Folder Watching Post by: jazz2k8 on July 17, 2008, 02:25:37 AM Eagerly waiitng for that :045:
|