Show user opened a file in column in network

Discuss and share scripts and script files...
Post Reply
RASA
Posts: 12
Joined: 04 Jul 2024 11:59

Show user opened a file in column in network

Post by RASA »

Hello,

I'm excited about the xyplorer.
I can set all how I need except one thing.
We want to use it in a multi user setup.
My hope is , there is a simple script to have a column showing when a file is opened by a user. I tried chatgpt and gemini to let it script for me but it did not work.
Maybe someone can help me here? I hope it's not to complicated.

Thank forward,

RASA

highend
Posts: 14672
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Show user opened a file in column in network

Post by highend »

You want a custom column that shows when a user has double clicked on e.g. a .txt file or the indicator in the custom column is set to e.g. "opened" for the whole time starting from when the user double clicked the file until it gets closed (either because the file was closed in the editor or the editor was exited)?
One of my scripts helped you out? Please donate via Paypal

RASA
Posts: 12
Joined: 04 Jul 2024 11:59

Re: Show user opened a file in column in network

Post by RASA »

Hello highend,

the second one I mean.
For example: We edit files and want to save/overwrite them, but someone else has it still open. So thats blocking the process. That happens regualary. Then you have to find in the big company the one who is using it :veryconfused:

regards,
RASA

highend
Posts: 14672
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Show user opened a file in column in network

Post by highend »

XY doesn't know anything about the state of a file after you've opened it so there isn't a simple script for such stuff

Even if you'd write a small helper application it would be very hard (if not impossible) to check if a file was closed afterwards...
One of my scripts helped you out? Please donate via Paypal

RASA
Posts: 12
Joined: 04 Jul 2024 11:59

Re: Show user opened a file in column in network

Post by RASA »

well thats sad.
Would there then be a possibility to show who opened it the last time?
Windows has this information, but I dont know if you might need admin access to get this data and how you get it into xy

highend
Posts: 14672
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Show user opened a file in column in network

Post by highend »

That's not the problem...

E.g. as the very first item for "Custom File Associations"

Code: Select all

"All files" *>::tagitems("ex1", "%USERNAME%", <curitem>); open "<curitem>", "w";
Then display the "extra 1" column in the list view and whenever your open a file the username will be in that field...
One of my scripts helped you out? Please donate via Paypal

RASA
Posts: 12
Joined: 04 Jul 2024 11:59

Re: Show user opened a file in column in network

Post by RASA »

wow, I'm inpressed. That works and I would never had known to set this up :biggrin:
THANKS for the fast support.

Post Reply