Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

redirect with TCMD 8.02

set iName="%@execstr[ dir /a:-d /b /f /k /m /ne /o:-s %cName 2>NUL: ]"

I'm trying to not have any "Files Not found" erros show. What am i doing wrong? I looked at the help but couldn't find it....
 
On Wed, 04 Mar 2009 13:40:01 -0600, "[email protected]"
<> wrote:

|set iName="%@execstr[ dir /a:-d /b /f /k /m /ne /o:-s %cName 2>NUL: ]"
|
|I'm trying to not have any "Files Not found" erros show. What am i doing wrong? I looked at the help but couldn't find it....

I don't get error messages when I try that. And I don't think NUL needs a ":".
--
- Vince
 
I do if cName contains a filemask that does not match any files in the
current folder....


----- Original Message -----
From: "vefatica" <>
To: <[email protected]>
Sent: Wednesday, March 04, 2009 3:19 PM
Subject: RE: [Support-t-1018] redirect with TCMD 8.02



> On Wed, 04 Mar 2009 13:40:01 -0600, "[email protected]"
> <> wrote:
>
> |set iName="%@execstr[ dir /a:-d /b /f /k /m /ne /o:-s %cName 2>NUL: ]"
> |
> |I'm trying to not have any "Files Not found" erros show. What am i doing
> wrong? I looked at the help but couldn't find it....
>
> I don't get error messages when I try that. And I don't think NUL needs a
> ":".
> --
> - Vince
>
>
>
>
>
 
On Wed, 04 Mar 2009 18:00:13 -0600, "[email protected]"
<> wrote:

|I do if cName contains a filemask that does not match any files in the
|current folder....

That's how I tested:

v:\> set cName=*.foofoo

v:\> set iName="%@execstr[ dir /a:-d /b /f /k /m /ne /o:-s %cName 2>NUL ]"

v:\> set iName
""
--
- Vince
 
I tested it with a mask that matched zero and got the same results as
vince.

Sent from Cookie's iPhone
Jim Cook

On Mar 4, 2009, at 17:47, vefatica <> wrote:


> On Wed, 04 Mar 2009 18:00:13 -0600, "[email protected]"
> <> wrote:
>
> |I do if cName contains a filemask that does not match any files in
> the
> |current folder....
>
> That's how I tested:
>
> v:\> set cName=*.foofoo
>
> v:\> set iName="%@execstr[ dir /a:-d /b /f /k /m /ne /o:-s %cName
> 2>NUL ]"
>
> v:\> set iName
> ""
> --
> - Vince
>
>
>
>
 

Similar threads

Back
Top