Welcome, Guest. Please login or register.
Your Ad Here
Pages: [1]   Go Down
  Print  
Author Topic: Folder Watching  (Read 1944 times)
0 Members and 1 Guest are viewing this topic.
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« 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.javaprogrammin...a/70-folder-watching.html

Since i was bored i've coded it myself so here it is: http://engineeringserver....ware/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.
« Last Edit: July 04, 2008, 06:04:10 PM by HappyFace » Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net/forum :: A community for software developers
« on: July 04, 2008, 06:01:12 PM »

Your Ad Here
 Logged
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« Reply #1 on: July 06, 2008, 04:34:14 PM »

Screenshot:
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Junior Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0
Activity
0%

WWW Awards
« Reply #2 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.
Logged

visit my blog: www.yoteam.co.cc
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« Reply #3 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.
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« Reply #4 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....ware/FileProcessor_v2.rar
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« Reply #5 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.







« Last Edit: July 08, 2008, 02:09:01 AM by HappyFace » Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
HappyFace
Javaforums.net admin
Oldbie
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2538
Referrals: 11
Activity
29%

WWW Awards
« Reply #6 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.
« Last Edit: July 10, 2008, 03:20:34 PM by HappyFace » Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Junior Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0
Activity
0%

WWW Awards
« Reply #7 on: July 17, 2008, 02:25:37 AM »

Eagerly waiitng for that 045
Logged

visit my blog: www.yoteam.co.cc
Javaforums.net/forum :: A community for software developers
   


 Logged
Pages: [1]   Go Up
  Print  
 
Jump to: