Re: Renaming a directory to all uppercase on Windows?
- From: walton.paul@xxxxxxxxx
- Date: Thu, 11 Dec 2008 11:21:14 -0800 (PST)
On Dec 11, 11:48 am, APN <palm...@xxxxxxxxx> wrote:
On Dec 11, 3:33 pm, "Donal K. Fellows" <donal.k.fell...@xxxxxxxxx>
wrote:
walton.p wrote:
But, of course, this is a hack. And it takes twice as long. Am I
missing something?
No. It's how life is on Windows. (You have the same restriction in
Explorer too.)
Donal.
Nope, Explorer will allow you to change the case of a file/dir name,
at least on XP.
The basic issue is that the file rename command sees FOLDER exists
(actual name folder) and as per its documented behaviour assumes you
are trying to move the source file into that directory. Given the
source is folder itself, it complains about moving a directory onto
itself.
IMHO, the semantics of "file rename", which probably came from the
unix mv command, are broken. But it is behaving as documented.
/Ashok
Yep, that's exactly it. Thank you for that explanation, Ashok.
It's obvious that this "file rename" behavior was intended for a case-
sensitive filesystem. The fix should be simple... ie., If string eq -
nocase $source $target, then use the first documented "file rename"
behavior when on a case-insensitive OS.
.
- References:
- Renaming a directory to all uppercase on Windows?
- From: walton . paul
- Re: Renaming a directory to all uppercase on Windows?
- From: Donal K. Fellows
- Re: Renaming a directory to all uppercase on Windows?
- From: APN
- Renaming a directory to all uppercase on Windows?
- Prev by Date: Re: Sourcing a TCL file from within a tcl file
- Next by Date: Re: Is there a Tcl equivelent of VBA's SendKeys
- Previous by thread: Re: Renaming a directory to all uppercase on Windows?
- Next by thread: Re: Renaming a directory to all uppercase on Windows?
- Index(es):
Relevant Pages
|