aplonis has asked for the wisdom of the Perl Monks concerning the following question:
Working on a script that lets user's have graphics files relocated just by droping a directory of them inside another directory.
So my script needs to move them out of there when done so it doesn't install them over again at next restart if users are lazy and leave them in side.
But this is on Win32 and I keep getting refused permission even though I'm running it as admin. I can create empty directories. I can create and rename files. But I cannot rename (move) directories.
Is there a workaround? or something I'm doing wrong?What I'd like to do is as below...
move( "C:/foo/bar/my_work/whatever", "C:/foo/bar/whatever");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Moving directories on Win32
by wind (Priest) on Nov 28, 2007 at 17:55 UTC | |
by aplonis (Pilgrim) on Nov 28, 2007 at 18:34 UTC | |
by BrowserUk (Patriarch) on Nov 28, 2007 at 21:06 UTC | |
by wind (Priest) on Nov 28, 2007 at 18:50 UTC | |
|
Re: Moving directories on Win32
by jrsimmon (Hermit) on Nov 28, 2007 at 18:23 UTC | |
by aplonis (Pilgrim) on Nov 28, 2007 at 18:46 UTC | |
by jrsimmon (Hermit) on Nov 28, 2007 at 19:06 UTC | |
by ikegami (Patriarch) on Nov 28, 2007 at 20:26 UTC | |
by aplonis (Pilgrim) on Nov 28, 2007 at 23:56 UTC | |
|