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 S
Hi,
On Thu, Feb 14, 2013 at 6:40 PM, dmccunney wrote:
> On Thu, Feb 14, 2013 at 7:15 PM, Ray Davison 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 NOT EXIST
On Thu, Feb 14, 2013 at 7:15 PM, Ray Davison 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
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 Firewal
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
>
> ---
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?
>
---
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
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" 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
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 ne