On Thu, Feb 14, 2013 at 7:15 PM, Ray Davison <ray...@charter.net> wrote: > Is there something like this in FD? > > IF NOT EXIST X:\ZZZ MD X:\ZZZ > > Everything in front of the MD is ignored, and there is an error if > X:\ZZZ does exist.
IF EXIST works for files, but not directories. The check for the existence of a directory, search for a file *in* that directory. If the file exists, the directory does as well. The old time DOS hack for this was testing for the existence of the NUL device. If a directory existed, NUL would be found. IF NOT EXIST X:\ZZZ\NUL MD X:\ZZZ should do what you want. > Ray ______ Dennis https://plus.google.com/u/0/105128793974319004519 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user