Jump to content

Polling the Currently Open Folder in Explorer


Lipko

Recommended Posts

Hi all!

Is it possible to get which folders are open in all the File Explorer windows? I'd make a simple folder activity monitor program to monitor my own activity, and monitoring which folders I view would be sufficient enough for this. I know, I should be disciplined with documenting my own work hours per project but I'm simply not.

It only has to work with Windows10.

Thanks for any hints in advance!

Link to comment
32 minutes ago, ShaunR said:

Not natively in LabVIEW.

You have to use the IShellwindows interface in windows 10.

Thanks!
Stupid question, I'll look into it of course, but could that C code you linked be dumped in a C node as it is with all the includes and stuff and then hapiness, or it's not that simple? Command line options sublick throws 404...

Link to comment
5 hours ago, ShaunR said:

Speaking of which. Does that mean we no longer have to call the proper LabVIEW "LabVIEW Classic"? :D 

At one point I heard NXG called "Better LabVIEW" and someone else suggested the real name was "Beta LabVIEW".  I've also heard of it called to as LabVIEW 20xx, or Current Gen (CG).  I like Lab-deja-VIEW.

  • Haha 2
Link to comment
45 minutes ago, Neil Pate said:

@Lipko have you tried toggl?

I used it for many years when I was a freelance to track my time. It was ok, but half the time I forgot to start and stop the timer. I suspect having something monitoring your files is also going to be pretty inaccurate.

I wanted a free solution, pretty strict corporate rules...

Link to comment

If it's just the time you are working in LabVIEW-that is doable without writing something for windows.

You could just monitor open LabvIEW windows and or projects (count them if you want). You can make it easier by namespacing VI's (e.g. myproject_someFunction) which, to be honest, I generally do as a matter of course. At a bare minimum and If you are working in projects, all you need is to monitor projects in memory and timestamp when they appear and disappear. Not folder activity-more of a project activity.

Link to comment
9 hours ago, Neil Pate said:

@Lipko have you tried toggl?

I used it for many years when I was a freelance to track my time. It was ok, but half the time I forgot to start and stop the timer. I suspect having something monitoring your files is also going to be pretty inaccurate.

I used toggl a lot myself when consulting. I did not find the timer useful, but at the end of the day I would try to make entries in round numbers (.5 hour resolution) of how much time was spent per project and a short summary of what item(s) I worked on. It was fantastic when submitting invoices for hourly work. No questions asked, very transparent, and it made producing the invoice quite easy.

Link to comment

Maybe this will help.  there's a .net class you can easily call from LabVIEW.  There's no need for polling either.  You will get an event then your callback VI can handle the event

FileSystemWatcher Class (System.IO) | Microsoft Docs

COPYING AND MOVING FOLDERS
Event Handler        Events Handled                           Performs
OnChanged            Changed,                                     Created, Deleted    Report changes in file attributes, created files, and deleted files.
OnRenamed           Renamed                                      List the old and new paths of renamed files and folders, expanding recursively if needed.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.