redirect with TCMD 8.02

  • Thread starter CSGalloway@nc.rr.com
  • Start date
  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
C

CSGalloway@nc.rr.com

Guest
#1
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....
 
#2
On Wed, 04 Mar 2009 13:40:01 -0600, "CSGalloway@nc.rr.com"
<> 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
 
C

CSGalloway@nc.rr.com

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


----- Original Message -----
From: "vefatica" <>
To: <CSGalloway@nc.rr.com>
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, "CSGalloway@nc.rr.com"
> <> 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
>
>
>
>
>
 
#4
On Wed, 04 Mar 2009 18:00:13 -0600, "CSGalloway@nc.rr.com"
<> 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
 
#5
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, "CSGalloway@nc.rr.com"
> <> 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
>
>
>
>