Re: [WIN] The "ren" API

new topic     » goto parent     » topic index » view thread      » older message » newer message

It's easy, just use moveFile that acts as renameFile (actually it's
moving the content to another name =P)
The Win32Lib includes moveFile, or if you are not using the library,
you can get win32fil that haves usefull functions for managing files
under windows.

Best Regards,
    Guillermo BonvehĂ­
    AKA: Caballero Rojo - Knixeur

--- Travis Beaty <travisbeaty at arn.net> wrote:
> 
> 
> Howdy y'all!
> 
> As I'm working on the installer, I've run into a bit of a pickle.  I
> am now
> at the point where the stock DOS installer changes the name of an
> existing
> Euphoria folder to "fuphoria."  The problem is, for the life of me I
> can't
> find a Windows API function which renames folders.  For that matter,
> I can't
> even find one to rename a file.
> 
> Looking in win32lib.ew, I discovered that quite a few routines have
> been
> wrapped for file manipulation; unfortunately, a renaming routine
> isn't among
> them.  So, I'm a little stuck on it.  I suppose I could just shell
> out a
> "ren" command, but that will have the nasty effect of flashing a DOS
> console
> window for about half a second, which does not look too awful
> professional.
> sad
> 
> I had originally considered allowing the user to change the location
> of
> Euphoria so that two different versions could be on their computer
> (looking
> forward to 2.3).  But it occurred to me that doing so would be a heck
> of a
> mess, since probably EUDIR can only point to one "version" at a time.
>  If
> y'all think that having more than one copy of Euphoria on a system is
> something desirable and *workable*, let me know.
> 
> Thanks, y'all!
> 
> Travis Beaty
> Claude, Texas.
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu