Re: [AD] make failing on mkdir

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Evert Glebbeek:
>> > if not exist DIR ( mkdir DIR )
>> >
>> > ? Do all Windows versions support this?

> You can't use exist to check for directories directly, if I recall. At
> least you couldn't in DOS. You'd have to check for if [not] exist DIR\nul
> or something like that... I don't remember, but can probably look it up.
> (once again wishes Windows were more like UNIX with things like this...)

Yeah, I seem to remember something about nul, too. It works without on
Windows XP, though.

>> Doesn't the windows mkdir support something like the -p option? It could
>> just be used then, and mkdir called on all install dirs, no matter if
>> they exist.

> No, as far as I know it doesn't... unfortunately.

On Windows XP, mkdir creates intermediate directories if command extensions
are enabled (the default, I think). But I guess this isn't supported on
Windows 9x.

--
Daniel Schlyder
http://bitblaze.com/





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/