[Freedos-user] if not exist?

2013-02-14 Thread Ray Davison
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. TY Ray -- Free Next-Gen Firewall Hardware Offer Buy your Sophos

Re: [Freedos-user] if not exist?

2013-02-14 Thread Chris Evans
If that doesn't work then a exist.c should be made that friend 1 errorlevel if so let me know and I make it On Feb 14, 2013 4:17 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

Re: [Freedos-user] if not exist?

2013-02-14 Thread Eric Auer
Hi! If that doesn't work then a exist.c should be made that friend 1 errorlevel if so let me know and I make it You misunderstood, IF EXIST does exists but has to be used in a special way for directory checks ;-) Is there something like this in FD? Yes of course: Type if /? to see how it

Re: [Freedos-user] if not exist?

2013-02-14 Thread Chris Evans
Here is a program you can call from batch file http://digitalatoll.com/pub/DMSOFT/exist.zip exist X:\ZZZ if errorlevel 0 goto itexists echo it doesnt exist goto end :itexists echo it exists! :end On 02/14/2013 04:15 PM, Ray Davison wrote: Is there something like this in FD?

Re: [Freedos-user] if not exist?

2013-02-14 Thread Alain Mouette
try this: IF NOT EXIST X:\ZZZ\NUL MKDIR X:\ZZZ Alain Em 14-02-2013 22:15, Ray Davison escreveu: 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. TY Ray

Re: [Freedos-user] if not exist?

2013-02-14 Thread Ray Davison
Eric Auer wrote: Yes of course: Type if /? to see how it should work. I wondered thru the batch area but did not try that. IF NOT EXIST X:\ZZZ\NUL MKDIR X:\ZZZ OK that works. TY Ray -- Free Next-Gen Firewall

Re: [Freedos-user] if not exist?

2013-02-14 Thread dmccunney
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

Re: [Freedos-user] if not exist? / Garbo's TSBAT

2013-02-14 Thread Rugxulo
Hi, On Thu, Feb 14, 2013 at 6:40 PM, dmccunney dennis.mccun...@gmail.com wrote: 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

Re: [Freedos-user] if not exist? / Garbo's TSBAT

2013-02-14 Thread Chris Evans
For those that cant use the NUL trick they can use exist.exe it will check for dir and file name and return errorlevel. http://digitalatoll.com/pub/DMSOFT/exist.zip -- Free Next-Gen Firewall Hardware Offer Buy your