Completely Flummoxed. New User.

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

Moderators: DataMystic Support, Moderators

Ardwych
Posts: 3
Joined: Fri Nov 13, 2015 5:37 am

Completely Flummoxed. New User.

Postby Ardwych » Fri Nov 13, 2015 6:00 am

After Catch 22, Joseph Heller's most famous book was 'Something Happened'.

That's what I'm hoping I can use FileWatcher for, but my first use of it has me completely flummoxed.
Examples are spare (2), descriptions are absent, and its usage, to me, is far from obvious.

I'm hoping that FileWatcher can detect - with respect to a folder branch's contents - that something's happened.
And when something happens, I want to be able to do something. And that something doesn't necessarily have to have anything to do with the files in that folder branch. Does not.

FileWatcher talks to me about executables, %FILE% codes, substitution or not, and a TEST button. But no matter what I do, Test pops up during what I imagine is a dress rehearsal, and asks me to select files, whether I've specified them in the parameters field or not.

I've tried ~\cmd.exe. Then ~\echo.bat ~\textfile.txt. But up pops the file selection box.
Echo.bat as the command, too, with filenames and even %FILE% but always the *&^@%# file selection box pops up.

Can I just DO SOMETHING, irrespective of, unrelated to, irrelevant of, besides, what files I'm watching, just when something happens?
Thx.

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

Re: Completely Flummoxed. New User.

Postby DataMystic Support » Thu Nov 19, 2015 10:55 am

FileWatcher's purpose is to look for changes to files and folders. So it makes sense that it is designed to pass the names of the changed objects.

However, you should be able to remove the %FILE% from the Action's command line, hence the filenames get ignored.
Or get the Action to ignore them. If that's not possible, use a batch file as an intermediary between FileWatcher and your Action so that you can ignore the %FILE% passed in files.

Does that make sense?
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Ardwych
Posts: 3
Joined: Fri Nov 13, 2015 5:37 am

Re: Completely Flummoxed. New User.

Postby Ardwych » Fri Nov 20, 2015 4:24 am

Thanks for replying, Simon.
I've got it working in a rudimentary way. Ignoring %FILES% completely for the time being ...and 'Test'.

It seems FileWatcher suffers from the same syndrome that Windows suffers from - or it inherits it.

OneDrive, the folder, for instance, likes to reside under the user's folder: Users\unam\OneDrive. Within that is suggested files/folders to be synced to the cloud.
That, however, breaks the Users\unam\Documents; Users\unam\Downloads; Users\unam\Music; Users\unam\Pictures etc structure that we've lived with since Vista.
One way around that is to feed symbolic links into Users\unam\OneDrive, to then feed the cloud.
mklink /d Users\unam\OneDrive\Documents Users\unam\Documents [as admin]

The trouble is, Windows doesn't detect file changes through symbolic links, so OneDrive doesn't get synced, more or less immediately.
It detects folder changes, but not anything to do with files.
I'd hoped that FW would detect file changes through the s/ls - but no. :(

Pointing OneDrive directly at Docs, Pics etc is too inclusive, unselective, and so, impractical - 750 GB into 25 doesn't go.

Ideas, perhaps..?

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

Re: Completely Flummoxed. New User.

Postby DataMystic Support » Fri Nov 20, 2015 8:09 am

Check the 'Use Polling' option on the main screen. It checks the files 'manually' without going through the Windows file event mechanism. It slower, and takes more resources, but it works
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Ardwych
Posts: 3
Joined: Fri Nov 13, 2015 5:37 am

Re: Completely Flummoxed. New User.

Postby Ardwych » Mon Nov 23, 2015 3:40 pm

Thanks Simon. I found 'use polling' on the Folders to Watch tab at the 'Network or FTP location - use polling' tick-box. A settable period of time before FW goes and looks through the folder(s) it's watching.
Works as suggested.

But - a by-product of FW has now imposed itself: the action I undertake is to rename a folder with the current date and time via a batch file (OneDrive.exe notices that); that batch file uses the function - 'in ('reg query HKCU\Software\Microsoft\OneDrive /v UserFolder')'.
That 'reg query' fails, the command interpreter seeing only 'reg', and says it's not a recognised internal or external (whatever) command.

Q1. Does FW take itself out of the current user's context, somehow, or does it leave behind variables, or invoke some other shortcut effect?

I see (for the first time) that cmd.exe has a large number of switches available, some of which address for/do loops. I must examine.

Q2. Do you know, of any quick way to make cmd behave?

Thx.

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

Re: Completely Flummoxed. New User.

Postby DataMystic Support » Thu Nov 26, 2015 12:21 pm

In general, you have to run a batch file through cmd.exe - you can't get cmd.exe to run stuff from its command line, especially for loops.

Can you check who cmd.exe gets run as? Usually you get permissions/security problems.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “FileWatcher, DirDate and other Support”

Who is online

Users browsing this forum: No registered users and 1 guest