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
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
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