batch editing of links to pdfs?
I have all my pdfs in a directory and I've made links to each pdf. I will need to move them to another directory now. Is it possible to batch edit the links ? They will have the same name but will be in a new directory
thanks
Johan
thanks
Johan
Any suggestions on the exact command?
Johan
UPDATE itemAttachments SET path=REPLACE(path, 'C:\Path\To\Old\Dir', 'C:\Path\To\New\Dir');
You'd want to make a backup copy first, of course, and I'd also recommend doing a SELECT first to make sure you'll be getting what you expect:
SELECT path AS oldPath, REPLACE(path, 'C:\Path\To\Old\Dir', 'C:\Path\To\New\Dir') AS newPath FROM itemAttachments;
I think zotfile will do this for you.
http://www.columbia.edu/~jpl2136/zotfile.html