Oh, and BEWARE!!!
If you have two files:
/FolderA/FolderB/FolderC/FileX.xxx
/FolderA/FolderB/FolderC/FileY.xxx
rename /FolderA/FolderB/FolderC/FileX.xxx to /FolderA/FolderB/FolderC/
FileY.xxx
You will end up with one file called FileY.xxx! IOW, if the file
exists in the destination path it will quite happily OVERWRITE it!
In the documentation it says:
Caution! This command can be used to rename or move files and
folders your stack did not create. Of course, a stack should not
rename or move files and folders it didn't create without obtaining
explicit confirmation from the user.
However it doesn't say *anything* about overwriting files!
It just gets worse!
All the Best
Dave
************************************************************************
Hi,
But:
a) I'm not running Unix!
b) In the Unix the Command is "mv" (for move) and, AFAIR you can
say: mv /FolderA/FolderB/FolderC/Filex.xxx /FolderA/FolderB/FolderX/
which is what I was doing in the first place!
I just don't get it, you take the Unix "move" command, call it
"rename" and then stop it working like "move". ROFL! Makes no sense
at all to me! It's a crazy world!
All the Best
Dave
On 6 Mar 2007, at 15:47, Andre Garzia wrote:
Dave,
in unix, moving a file is the same thing as renaming... ;-)
Cheers
andre
On Mar 6, 2007, at 12:39 PM, Dave wrote:
True, but I'm NOT renaming the file at all!!! It's name stays the
same! So it kinda don't make sense in the first place!!
All the Best
Dave
On 6 Mar 2007, at 15:26, Ian Wood wrote:
Which makes sense, otherwise you'd be renaming the file as a
folder... ;-)
Ian
On 6 Mar 2007, at 15:13, Dave wrote:
Hi,
One thing to note here is that:
rename "/FolderA/FolderB/FolderC/FileX.xxx" to "FolderA/FolderB/
FolderX/"
Does not work!
In order to make this work you have to use:
rename "/FolderA/FolderB/FolderC/FileX.xxx" to "FolderA/FolderB/
FolderX/FileX.xxx"
All the Best
Dave
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution