4NT5.00U and Unicode

4NT5.00U and Unicode

Post by Ulrich Hage » Sat, 06 Sep 2003 02:33:35



Hi,

I considered upgrading to 4NT5 to take advantage of the new Unicode
support, but I have experienced some problems with it.

My test to reproduce the fault is as follows: I start 4NTU.exe with
the '/U' switch. It tells me it is

Quote:> 4NT  5,00U   Windows 2000 5,0
> 4NT Build 113   Windows 2000 Build 2195  Service Pack 4

I have a 'fortest.btm' file which contains


> *dir/f/a:-d %1
> *dir/f/a:-d %1 > %TempFile

> *del /k /q %TempFile
> quit
> :DoIt
>   echo DoIt running for file "%file"
>   *dir/f "%file"
> return

and I have a directory d:\Temp\Test with the three files a.a, b.b and
c.c.

Now I run fortest.btm like this

Quote:> fortest.btm d:\Temp\Test\*

and the output is

> set Tempfile=D:\Temp\4NTA.tmp
> dir/f/a:-d d:\Temp\Test\*
> D:\Temp\Test\a.a
> D:\Temp\Test\b.b
> D:\Temp\Test\c.c
> dir/f/a:-d d:\Temp\Test\* > D:\Temp\4NTA.tmp

> echo DoIt running for file "D:\Temp\Test\a.a"
> DoIt running for file "D:\Temp\Test\a.a"
> dir/f "D:\Temp\Test\a.a"
> D:\Temp\Test\a.a
> return
> echo DoIt running for file "D"
> DoIt running for file "D"
> dir/f "D"
> 4NT: (Sys) D:\4NT500\fortest.btm [9]  The system cannot find the file specified.
>  "D:\4NT500\D"
> return
> echo DoIt running for file "e"
> DoIt running for file "e"
> dir/f "e"
> 4NT: (Sys) D:\4NT500\fortest.btm [9]  The system cannot find the file specified.
>  "D:\4NT500\e"
> return
> del /k /q D:\Temp\4NTA.tmp
> quit

If I start 4NTU.exe without the '/U' switch, everything works nicely:

- Show quoted text -

> set Tempfile=D:\Temp\4NTB.tmp
> dir/f/a:-d d:\Temp\Test\*
> D:\Temp\Test\a.a
> D:\Temp\Test\b.b
> D:\Temp\Test\c.c
> dir/f/a:-d d:\Temp\Test\* > D:\Temp\4NTB.tmp

> echo DoIt running for file "D:\Temp\Test\a.a"
> DoIt running for file "D:\Temp\Test\a.a"
> dir/f "D:\Temp\Test\a.a"
> D:\Temp\Test\a.a
> return
> echo DoIt running for file "D:\Temp\Test\b.b"
> DoIt running for file "D:\Temp\Test\b.b"
> dir/f "D:\Temp\Test\b.b"
> D:\Temp\Test\b.b
> return
> echo DoIt running for file "D:\Temp\Test\c.c"
> DoIt running for file "D:\Temp\Test\c.c"
> dir/f "D:\Temp\Test\c.c"
> D:\Temp\Test\c.c
> return
> del /k /q D:\Temp\4NTB.tmp
> quit

Am I doing something wrong here? I would love to be able to handle
files with names like '?.txt' in my batchfiles.

Sorry for the long posting,

Ulrich

 
 
 

4NT5.00U and Unicode

Post by Stev » Sat, 06 Sep 2003 03:13:55



> Hi,

> I considered upgrading to 4NT5 to take advantage of the new Unicode
> support, but I have experienced some problems with it.

> My test to reproduce the fault is as follows: I start 4NTU.exe with
> the '/U' switch. It tells me it is

> > 4NT  5,00U   Windows 2000 5,0
> > 4NT Build 113   Windows 2000 Build 2195  Service Pack 4

> I have a 'fortest.btm' file which contains


> > *dir/f/a:-d %1
> > *dir/f/a:-d %1 > %TempFile

> > *del /k /q %TempFile
> > quit
> > :DoIt
> >   echo DoIt running for file "%file"
> >   *dir/f "%file"
> > return

> and I have a directory d:\Temp\Test with the three files a.a, b.b and
> c.c.

> Now I run fortest.btm like this

> > fortest.btm d:\Temp\Test\*

> and the output is

> > set Tempfile=D:\Temp\4NTA.tmp
> > dir/f/a:-d d:\Temp\Test\*
> > D:\Temp\Test\a.a
> > D:\Temp\Test\b.b
> > D:\Temp\Test\c.c
> > dir/f/a:-d d:\Temp\Test\* > D:\Temp\4NTA.tmp

> > echo DoIt running for file "D:\Temp\Test\a.a"
> > DoIt running for file "D:\Temp\Test\a.a"
> > dir/f "D:\Temp\Test\a.a"
> > D:\Temp\Test\a.a
> > return
> > echo DoIt running for file "D"
> > DoIt running for file "D"
> > dir/f "D"
> > 4NT: (Sys) D:\4NT500\fortest.btm [9]  The system cannot find the file specified.
> >  "D:\4NT500\D"
> > return
> > echo DoIt running for file "e"
> > DoIt running for file "e"
> > dir/f "e"
> > 4NT: (Sys) D:\4NT500\fortest.btm [9]  The system cannot find the file specified.
> >  "D:\4NT500\e"
> > return
> > del /k /q D:\Temp\4NTA.tmp
> > quit

> If I start 4NTU.exe without the '/U' switch, everything works nicely:

> > set Tempfile=D:\Temp\4NTB.tmp
> > dir/f/a:-d d:\Temp\Test\*
> > D:\Temp\Test\a.a
> > D:\Temp\Test\b.b
> > D:\Temp\Test\c.c
> > dir/f/a:-d d:\Temp\Test\* > D:\Temp\4NTB.tmp

> > echo DoIt running for file "D:\Temp\Test\a.a"
> > DoIt running for file "D:\Temp\Test\a.a"
> > dir/f "D:\Temp\Test\a.a"
> > D:\Temp\Test\a.a
> > return
> > echo DoIt running for file "D:\Temp\Test\b.b"
> > DoIt running for file "D:\Temp\Test\b.b"
> > dir/f "D:\Temp\Test\b.b"
> > D:\Temp\Test\b.b
> > return
> > echo DoIt running for file "D:\Temp\Test\c.c"
> > DoIt running for file "D:\Temp\Test\c.c"
> > dir/f "D:\Temp\Test\c.c"
> > D:\Temp\Test\c.c
> > return
> > del /k /q D:\Temp\4NTB.tmp
> > quit

> Am I doing something wrong here? I would love to be able to handle
> files with names like '?.txt' in my batchfiles.

Sorry, I use Win98 - unicode not spoken here. If you repost your
question in the OFFICIAL JPsoft forum (see instructions at the website),
undoubtedly you will receive a quick response.

In the mean time, I wonder if your "FOR" is possibly aliased? Also, you
could have used the "TEE" internal command:

*dir /f /a:-d %1 | tee %TempFile
--

Telephone: 856-354-1752            POB 1540, Cherry Hill, NJ 08034
-------------------------------------------------------------------

 
 
 

4NT5.00U and Unicode

Post by Ulrich Hage » Sun, 07 Sep 2003 00:37:58



Quote:>Sorry, I use Win98 - unicode not spoken here. If you repost your
>question in the OFFICIAL JPsoft forum (see instructions at the website),
>undoubtedly you will receive a quick response.

>In the mean time, I wonder if your "FOR" is possibly aliased? Also, you
>could have used the "TEE" internal command:

>*dir /f /a:-d %1 | tee %TempFile

No, my 'FOR' is not aliased. Also I inserted this extra 'dir' command
just to see what's going on.

I will try the JPsoft forum for help.

Thanks,

Ulrich