mk21 1 Posted October 12, 2013 Report Share Posted October 12, 2013 I've had success using this feature before, but I can't get it to work in my current bot. Here's what I'm trying to do. I create a list of folders and then in each folder I create a list of multi-page pdf files. Then, I use TJ's PDF splitter to make them single page files in each folder. I then convert each pdf to txt and scrape some of the data to use to rename the single pdf page. I delete the txt and then try to rename the pdf file with the scraped data. Most of the time I'm getting the error message "The process cannot access the file because it is being used by another process." The only thing I have open accessing the file is ubot, so it isn't something else. It seems to be keeping the file open in a cache or something and it won't let me rename. Does anyone know of a workaround? Quote Link to post Share on other sites
mk21 1 Posted December 19, 2013 Author Report Share Posted December 19, 2013 bump for some help Quote Link to post Share on other sites
UBotDev 276 Posted December 19, 2013 Report Share Posted December 19, 2013 The problem is that one process is locking the files, which makes them inaccessible for other processes (for example this will also happen if you'll be saving to one file fast). To solve this you'll have to figure out why files are still locked and remove the lock (stop using the file) once you want to read/write that file from another process. Quote Link to post Share on other sites
mk21 1 Posted December 27, 2013 Author Report Share Posted December 27, 2013 To solve this you'll have to figure out why files are still locked and remove the lock (stop using the file) once you want to read/write that file from another process. The problem is occurring when I convert the pdf to txt and try to rename the pdf. For some reason, I can rename the txt file I just created, but not the pdf I created it from. Does anyone have any help they can offer to unlock the original pdf file? Quote Link to post Share on other sites
UBotDev 276 Posted December 27, 2013 Report Share Posted December 27, 2013 The problem is occurring when I convert the pdf to txt and try to rename the pdf. For some reason, I can rename the txt file I just created, but not the pdf I created it from. Does anyone have any help they can offer to unlock the original pdf file?According to what you say I think that pdf file is still in use when you try to rename it. If plugin uses container for pdf you should for example rename the pdf outside of that container. Since I don't have that plugin I suggest you try to contact the plugin developer, TJ. Quote Link to post Share on other sites
mithcd 4 Posted December 28, 2013 Report Share Posted December 28, 2013 Hi mk21, good luck on this request. Once you found a way, it would be also nice if you can share the steps here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.