[WIN] The "ren" API

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

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     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu