FileWatcher under Windows7 Pro

Discuss our other products here. Get help with installation and running, notify us of bugs, request new features and enhancements.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
luckytoo_2006
Posts: 2
Joined: Thu Aug 18, 2011 10:22 am

FileWatcher under Windows7 Pro

Post by luckytoo_2006 »

Hi all
File Watcher under W7 Home Premium runs just fine but under Windows 7 Pro keeps updating / running the action script for a file that hasn't changed at all.
It shows 3 messages that the file has changed and runs the Action script almost every few seconds even though I've put a 10 seonds delay on running scripts / actions.

My settings are to FTP only when file has changed.

Any insights are more than welcome and thanks in advance.

Abe
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: FileWatcher under Windows7 Pro

Post by DataMystic Support »

Hi Abe,

Does your FTP action modify the file (changes the modified date perhaps?).

Please paste here your settings.xml file.
luckytoo_2006
Posts: 2
Joined: Thu Aug 18, 2011 10:22 am

Re: FileWatcher under Windows7 Pro

Post by luckytoo_2006 »

Hello,
FTP script doesn't change date as far as I am aware. Simply copying to new file and then running ftp script.
I even disabled the FTP commands but the log shows that the file I am watching has changed every few seconds even though it should change every 2-3 minutes really as it's simply song names off a player list.


20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 [233] => Exit code 0 Hex $0000
20110818 21:19:18 [233] => Enabling trigger
20110818 21:19:18 [233] => Finished
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:29 [Main] => Disabling trigger while Action runs
20110818 21:19:29 [234] => Running "D:\COASTFM-XML\CoastFMUploadBat.bat" "D:\COASTFM-XML\COASTFM.xml"
20110818 21:19:29 File updated: D:\COASTFM-XML\COASTFM.xml

Here same OP without the ftp running

20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:17 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 [233] => Exit code 0 Hex $0000
20110818 21:19:18 [233] => Enabling trigger
20110818 21:19:18 [233] => Finished
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:18 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:19 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:21 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:22 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:23 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:24 File updated again: D:\COASTFM-XML\BSI_OP.xml
20110818 21:19:29 [Main] => Disabling trigger while Action runs
20110818 21:19:29 [234] => Running "D:\COASTFM-XML\CoastFMUploadBat.bat" "D:\COASTFM-XML\COASTFM.xml"
20110818 21:19:29 File updated: D:\COASTFM-XML\COASTFM.xml

Same log running under XP professional updates only every few minutes which is correct - notice ftp is disabled here also:

20110818 21:41:04 File updated: C:\BSI32_Upload\index.htm
20110818 21:41:06 [Main] => Disabling trigger while Action runs
20110818 21:41:06 [1] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:41:07 [1] => Exit code 2 Hex $0002
20110818 21:41:07 [1] => Enabling trigger
20110818 21:41:07 [1] => Finished
20110818 21:45:06 File updated: C:\BSI32_Upload\index.htm
20110818 21:45:07 [Main] => Disabling trigger while Action runs
20110818 21:45:07 [2] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:45:07 [2] => Exit code 2 Hex $0002
20110818 21:45:07 [2] => Enabling trigger
20110818 21:45:07 [2] => Finished
20110818 21:49:34 File updated: C:\BSI32_Upload\index.htm
20110818 21:49:35 [Main] => Disabling trigger while Action runs
20110818 21:49:35 [3] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:49:36 [3] => Exit code 2 Hex $0002
20110818 21:49:36 [3] => Enabling trigger
20110818 21:49:36 [3] => Finished
20110818 21:49:47 File updated: C:\BSI32_Upload\index.htm
20110818 21:49:49 [Main] => Disabling trigger while Action runs
20110818 21:49:49 [4] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:49:49 [4] => Exit code 2 Hex $0002
20110818 21:49:49 [4] => Enabling trigger
20110818 21:49:49 [4] => Finished
20110818 21:49:55 File updated: C:\BSI32_Upload\index.htm
20110818 21:49:56 [Main] => Disabling trigger while Action runs
20110818 21:49:56 [5] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:49:57 [5] => Exit code 2 Hex $0002
20110818 21:49:57 [5] => Enabling trigger
20110818 21:49:57 [5] => Finished
20110818 21:50:02 File updated: C:\BSI32_Upload\index.htm
20110818 21:50:04 [Main] => Disabling trigger while Action runs
20110818 21:50:04 [6] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:50:04 [6] => Exit code 2 Hex $0002
20110818 21:50:04 [6] => Enabling trigger
20110818 21:50:04 [6] => Finished
20110818 21:50:17 File updated: C:\BSI32_Upload\index.htm
20110818 21:50:19 [Main] => Disabling trigger while Action runs
20110818 21:50:19 [7] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:50:19 [7] => Exit code 2 Hex $0002
20110818 21:50:19 [7] => Enabling trigger
20110818 21:50:19 [7] => Finished
20110818 21:54:33 File updated: C:\BSI32_Upload\index.htm
20110818 21:54:34 [Main] => Disabling trigger while Action runs
20110818 21:54:34 [8] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:54:35 [8] => Exit code 2 Hex $0002
20110818 21:54:35 [8] => Enabling trigger
20110818 21:54:35 [8] => Finished
20110818 21:58:59 File updated: C:\BSI32_Upload\index.htm
20110818 21:59:00 [Main] => Disabling trigger while Action runs
20110818 21:59:00 [9] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 21:59:01 [9] => Exit code 2 Hex $0002
20110818 21:59:01 [9] => Enabling trigger
20110818 21:59:01 [9] => Finished
20110818 22:03:16 File updated: C:\BSI32_Upload\index.htm
20110818 22:03:17 Removing file: C:\BSI32_Upload\index.htm
20110818 22:03:17 File updated: C:\BSI32_Upload\index.htm
20110818 22:03:19 [Main] => Disabling trigger while Action runs
20110818 22:03:19 [10] => Running "C:\BSI32\IMM_Upload.bat" "C:\BSI32_Upload\index.htm"
20110818 22:03:19 [10] => Exit code 2 Hex $0002
20110818 22:03:19 [10] => Enabling trigger
20110818 22:03:19 [10] => Finished

Thanks once more
Abe
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: FileWatcher under Windows7 Pro

Post by DataMystic Support »

Hi Abe,

Are you using the latest FileWatcher 2.9.3? There is no difference in how FileWatcher operates on XP vs Windows7Home, and I don't see why it should work any differently between the two platforms. Hence I am going to concentrate on the player list aspect. But first - if you disable the player, and MANUALLY alter D:\COASTFM-XML\BSI_OP.xml, does FileWatcher work as expected?
simply song names off a player list
Is the player writing to a log file? Which player are you using? Is it a different version under XP vs Windows7Home?
aykutcanturk
Posts: 3
Joined: Thu Nov 10, 2011 10:12 pm

Re: FileWatcher under Windows7 Pro

Post by aykutcanturk »

same thin happens to me... this is not even ftp, just a simple test try.
I have a txt file in on folder and when it changes I want to replace it with original one from other folder. bat file works fine. when I change txt file with notepad, bat file runs and copies the file from original location.
BUT....
in every couple of second filewatcher runc tat batch file again again. txt file is not changing. nobody touches it. thate's no antivirus or windows essentials protection software on system.

filewatcher remains silent until first change of file. hen it goes into loop..

any suggestions ?

20111110 14:18:12 [Main] => Starting watch
20111110 14:18:38 File updated: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:38 File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:44 [Main] => Disabling trigger while Action runs
20111110 14:18:44 [1] => Running "D:\Aykut\AC_Desktop\orj\copy.bat" "Shekispare.txt"
20111110 14:18:44 [1] => Exit code 0 Hex $0000
20111110 14:18:44 File updated: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:44 File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:44 File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:44 [1] => Enabling trigger
20111110 14:18:44 [1] => Finished
20111110 14:18:50 [Main] => Disabling trigger while Action runs
20111110 14:18:50 [2] => Running "D:\Aykut\AC_Desktop\orj\copy.bat" "Shekispare.txt"
20111110 14:18:50 File updated: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:50 File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:50 [2] => Exit code 0 Hex $0000
20111110 14:18:50 File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
20111110 14:18:50 [2] => Enabling trigger
20111110 14:18:50 [2] => Finished
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: FileWatcher under Windows7 Pro

Post by DataMystic Support »

Can you please paste in your .bat file, and also, which version are you using? Is it 3.2.2?
aykutcanturk
Posts: 3
Joined: Thu Nov 10, 2011 10:12 pm

Re: FileWatcher under Windows7 Pro

Post by aykutcanturk »

bat file content is simple. I added "pause" and "echo" commands to keep command window open and see the results. as far as I see nothing worung and it does the job.

copy "D:\Aykut\AC_Desktop\orj\%1" "D:\Aykut\AC_Desktop\aaa"

ah, and I used %FILENAME% instead of %FILE% in application.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: FileWatcher under Windows7 Pro

Post by DataMystic Support »

It looks to me like you are monitoring the folder where you are copying files to:

Your batch files has:

Code: Select all

copy "D:\Aykut\AC_Desktop\orj\%1" "D:\Aykut\AC_Desktop\aaa"
And the log shows it as changed, and starts the process all over again...
File updated again: D:\Aykut\AC_Desktop\aaa\Shekispare.txt
You need to ensure that the target folder of the copy is not in the same folder as the watched folder.
aykutcanturk
Posts: 3
Joined: Thu Nov 10, 2011 10:12 pm

Re: FileWatcher under Windows7 Pro

Post by aykutcanturk »

sure, that's what I need to do. if a file changes then I2ll replace with original one...

when you say that, I thought I cannot do what I need with this software right ?

if a file changes, I'll replace it with original one from another folder.

can you confirm that ? or is there a possible way... ?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: FileWatcher under Windows7 Pro

Post by DataMystic Support »

Perhaps - but not as efficient.

If you check 'Network location - use polling', then it will compare the date of the changed file with the previous date. As long as this has not changed, it won't trigger a new action.

The copy takes the date of the original file, which will be older.

Let me know how that goes.
Post Reply