Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Folder Watching  (Read 2499 times)
0 Members and 1 Guest are viewing this topic.
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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

Screenshot:
http://www.engineeringserver.com/blog/wp-content/uploads/2008/07/screenshot.png
Folder Watching
Logged

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 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
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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.


http://img440.imageshack.us/img440/3452/58335107bx7.png
Folder Watching

http://img247.imageshack.us/img247/5254/31890591hv7.png
Folder Watching

http://img440.imageshack.us/img440/334/94632487zd4.png
Folder Watching

http://img440.imageshack.us/img440/3637/92675709ls6.png
Folder Watching


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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Arkie
Javaforums.net Admin
Senior Member
*

Reputation: 16
Developer @ Javaforums.net
Offline Offline
Posts: 2593
Referrals: 13

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

Java and .NET developer

To students: It doesn't matter how hard you've studied; the material won't be on the exam anyway.

Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://img222.imageshack....707/arkietomatoesmall.jpg
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 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
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here