Walter A Poor Jr wrote: > We have been using perl (ActiveState 5.8.6) on Windows 2000 PCs for a > year > > or so. Recently the PC techs replaced W 2000 with Windows XP Pro on > one of my PCs. Most perl functionality still works, but one key > operation in our main program now fails. > > The program prompts the user for the name of a data folder, and then > prompts for the name of a target folder. It then creates an > appropriately > > named subfolder of the target folder, and moves the data folder into > the new subfolder. This has worked fine with Windows 2000 for the > last 6 months. > > But this operation fails on the XP Pro machine: the program is able > to create the subfolder of the target folder, but then everything > stops because the program does not have permission to move the data > folder into it. The subfolder created by the program seems fine > because I can move the data folder into it by hand --- there are no > permission problems for > > me, just for the program. > > And since the details probably matter: the subfolder of the target > folder > > is created with the statement "mkdir($target_folder_name, 0777);", > and the data folder is moved using the "rename" function. > > Any ideas on why "rename" now fails, and on how to fix the problem? I > have already reinstalled perl, but that did not help. > > Thanks, > Walt Poor
This could be a problem with the permissions of the parent folder to the ones you are moving from and creating. Does it propagate the permissions properly? Luke -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>