Page 1 of 1

Tagging files from command line

Posted: 19 Mar 2021 16:14
by ojohavafoo
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?

Re: Tagging files from command line

Posted: 19 Mar 2021 16:19
by highend
Call XY with e.g the /feed switch and the script command to tag the file(s)?

Re: Tagging files from command line

Posted: 19 Mar 2021 16:35
by ojohavafoo
Yeah. That may work. I'll play around with it.

Re: Tagging files from command line

Posted: 19 Mar 2021 17:40
by ojohavafoo
For anyone who is wondering what the solution to this is, here is what I did:

Code: Select all

"C:\Program Files (x86)\XYplorer\XYplorer.exe" /feed="::tag 'abc', 'C:\path\to\your\file.pdf', 1, 0;"
I used the above in cmd.exe. You'd need to do a little more escaping to make it work in powershell.