I'm trying to figure out a way to add tags to XYplorer externally. Here's my idea. I'm scanning and OCR'ing a ton of PDFs. I have software that can match keywords in the content, and then do something. What I'd like that something to be is tags within XYplorer. I played around with using powershell to just edit tags.dat directly, but with loops and multiple tags, the workflow would just be too complex.
Is there a way to call the tag function of XYp externally, and let XYp do all the heavy lifting?
Tagging files from command line
Re: Tagging files from command line
Call XY with e.g the /feed switch and the script command to tag the file(s)?
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 3
- Joined: 19 Mar 2021 15:40
Re: Tagging files from command line
Yeah. That may work. I'll play around with it.
-
- Posts: 3
- Joined: 19 Mar 2021 15:40
Re: Tagging files from command line
For anyone who is wondering what the solution to this is, here is what I did:
I used the above in cmd.exe. You'd need to do a little more escaping to make it work in powershell.
Code: Select all
"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed="::tag 'abc', 'C:\path\to\your\file.pdf', 1, 0;"