Re: Change File name case



Thanks for the response Randy, That is what I ended up doing. I still have
a few NT PC floating around. Dan...

"Randy Birch" <rgb_removethis@xxxxxxxx> wrote in message
news:W--dnY5jtsE04knfRVn-ig@xxxxxxxxxxxxx
> As I recall with OS versions prior to XP, in order to change the case of
> an
> existing filename when not changing the filename itself you had to name
> the
> file to a new name, then back to the name you want. Using explorer I used
> to append an x to the name, change the case, and rename back. AFAIK XP is
> the only one that will let you rename a file to the same name just
> changing
> the case.
>
> --
>
> Randy Birch
> MS MVP Visual Basic
> http://vbnet.mvps.org/
> ----------------------------------------------------------------------------
> Read. Decide. Sign the petition to Microsoft.
> http://classicvb.org/petition/
> ----------------------------------------------------------------------------
>
>
>
> "Fz" <formulazz@xxxxxxxxxxxx> wrote in message
> news:42d4125e$0$123$143e8eca@xxxxxxxxxxxxxxx
> : Hi all,
> :
> :
> :
> : About 6 months ago I wrote a function to change the case of files names
> in
> a
> : directory. Not thinking to hard I used the "name" statement to change
> the
> : case, for example 'NAME c:\FILENAME.TXT as c:\filename.txt'. This
> worked
> : fine on my pc (WinXP). At the time I thought it was odd that it allowed
> me
> : to do this, but I was busy and continued on with out further testing
> this.
> : Well the program was rolled out today and the user got error 58, File
> : already exists, this is what I thought I should have got on my PC. I
> : quickly put a work around in place, by rename the file to a temporary
> name
> : and then back to the original name with the proper case for the file
> name.
> :
> :
> :
> : Is there a better solution than this? Maybe an API that will handle the
> name
> : change better?
> :
> :
> :
> : Thanks You, Dan...
> :
> :
> :
> :
>



.



Relevant Pages

  • Re: How to rename tables and fields using SQL?
    ... Tank you, Dan! ... Then how about rename a table? ... >> Laser Lu ... >>> Best regards, ...
    (microsoft.public.access.queries)
  • Re: - How do I rename print-to-file filename at runtime?
    ... Can't you just rename the file after creating it? ... Dan wrote: ... > I am trying to convert a bunch of different format files ...
    (microsoft.public.fox.programmer.exchange)
  • Re: - How do I rename print-to-file filename at runtime?
    ... The process is run on the network - renaming afterwards is unrealizable. ... actually renames the port file name (without manually changing it in the ... > Can't you just rename the file after creating it? ... > Dan wrote: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: filenames and cases
    ... Are you using SP1 of VFP 8.0? ... > Hi Dan ... > RENAME doesn't respect my case. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Change File name case
    ... > Thanks for the response Randy, That is what I ended up ... > NT PC floating around. ... Dan... ... Prev by Date: ...
    (comp.lang.basic.visual.misc)