Monitor folders for changes

Chryses

06-12-2011 16:51:03

Hi, from new beta this beautiful function don't works anymore.

With the old beta, if I set the check in option -> preferences -> search folders -> monitor folders for changes, every time one new files was created in that folders, tvrename make a new scan and apply automatically the rename/move action.

Now with the new beta this not happens.

It's only my case? or ther's any solution for that?

Anyway, tnx for this great program.

Jo

ziekke

07-12-2011 09:27:21

I am in the same boat here.
I'm using tvrename primarily for it's ability to monitor a torrent folder and automatically move/rename files without user intervention. Has the option moved somewhere?

Thanks!

c_tripps_2k

17-04-2012 09:24:46

Bump - Anyone figure this out? I am having the same problem.

shm613

24-08-2012 15:42:23

I didn't see this in the changes/fixes in the new updates so I was wondering if anyone has found the problem on this yet.

rwmnau

18-09-2012 15:43:09

I was in the same boat, but command line support was added in v2.2, so now I just set up a scheduled Windows task with the "/ignoremissing /doall" command line switches and it gets the job done for me. I miss this integrated feature, but now at least you get some scheduling control.

uspider7

22-09-2012 01:27:06

Hello, I'm not an expert in coding but can manage, and what I found is that the following code is preventing the "watchers" from kicking in for the designated Search folders;

if (!File.Exists(efi) || // doesn't exist
((File.GetAttributes(efi) & FileAttributes.Directory) != (FileAttributes.Directory)) ) // not a folder
continue;



At a glance the first line is checking for "files" not directories, and second seems to also be checking on file attributes instead of folders so your search folders are never added to the "watchers" list, just change the code to;

if (!Directory.Exists(efi)) // Folder does not exist
continue; //Break


and it works, all you need to do is download the source code and modify the code in the "AutoFolderMonitor.cs" line 39 and build the app. It's a small file so you won't have to dig through the code.

shm613

24-09-2012 09:46:29

Thanks

One more question if you don't mind. How do I get it from the source code to a file in which windows is able to use then (.exe or something to install the update)?

uspider7

02-10-2012 08:48:18

You'll have to download and install Visual Studio Express 2010 or 2008 then get a copy of the TvRename Source code from http://code.google.com/p/tvrename/ the link for the trunk code is http://tvrename.googlecode.com/svn/trunk/ which you can get it with http://tortoisesvn.net/

Once you have the source code and visual studio, just open the project file find code mentioned in the previous post, modify it and hit the build button and it will generate an .exe file for you.