| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 79229 | 2007-05-13 06:02:00 | how do I create a watch folder? | Mike (15) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 549462 | 2007-05-13 06:02:00 | Can anybody tell me how to create a Watch Folder? I have a script (well, will have a script once I figure out the answer to this question) that I want to run whenever a file is put into a particular folder (my watch folder). I need, however, some way to tell the script to run when a file is added :) I've had a hunt around on the net and can only find programs I have to pay for (surely this is common enough for there to be some free ones around?) Does anybody know a nice easy way (and free) to set my folder up with a watch script? If you know how to get Python to watch a folder, then even better, because the script I want to run will be in Python :D... or does anybody know of any free watch-folder apps that will run a script when a file is added? Thanks, Mike. |
Mike (15) | ||
| 549463 | 2007-05-13 11:31:00 | maybe this from linuxforums.org (www.linuxforums.org) will get you heading in the right direction you may have to run the script as cron job ie every minute for example |
beama (111) | ||
| 549464 | 2007-05-13 19:57:00 | maybe this from linuxforums.org (www.linuxforums.org) will get you heading in the right direction you may have to run the script as cron job ie every minute for exampleDid I forget to add that I'm running Windows Vista? :D I have thought about running the script every 30 minutes or so as a scheduled task, which will probably work for me, but a watch folder would be nicer ;) Mike. |
Mike (15) | ||
| 549465 | 2007-05-14 06:34:00 | Did I forget to add that I'm running Windows Vista? :D foul he cried, I smell a setup :D:D but still possible if you like coding, Wants your vbnet like then |
beama (111) | ||
| 549466 | 2007-05-14 06:56:00 | foul he cried, I smell a setup :D:D but still possible if you like coding, Wants your vbnet like thenVB? non existant :) I found a vb code on the net somewhere that'll apparently do what I want, but I wouldn't even know where to start with it :) Mike. |
Mike (15) | ||
| 549467 | 2007-05-14 11:26:00 | You could try nnCronlite from here (www.nncron.ru). It looks as if you can do quite a bit by using a few Forth commands, but it is not clear from the FAQ and forum questions whether the lite version will do it all. If not, you can at least make it run Autoit (http://www.autoitscript.com/) and make it look for things like:- the folder size (www.adminscripteditor.com)[ if you know the size before and after the file arrives ] if the file exists (www.adminscripteditor.com)[if you know the name of the file] |
decibel (11645) | ||
| 1 | |||||