Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Windows : Permission denied on Folder.rename()

$
0
0

Hi all,

 

First of all, I was told this topic has already been covered but after several searches, still couldn't find any related post. If I missed the obvious, feel free to redirect me.

 

Here is my problem. I have a routine for renaming folders and subfolders, indesign files and indesign books files. All the links have to be updated regarding to the new name and book also.

On mac, no problem. This can be launched dozens of times in a row without any problems.

 

On Windows (7&8, didn't try on former versions), the rename routine can be successfully ran once. Then it stops working. The Folder.rename() method systematically returns false. Reason why ? Permission denied. Then I checked the rights, all ok. I tried VB, command line and finally manual rename, I got returned "Permission denied" every time.


For the sake of completeness, the files are on a network drive that users map. So all the rename operations occur through the network. I am guessing that once the first rename happens, some operations keeps hand on the files and folders. But I have no clue how to validate this theory.

 

Do anyone of you ever faced this issue ? And of course find a way out ?

 

Thanks in advance for any hint,

 

Best regards,

 

Loïc


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>