You are not logged in.
Pages: 1
Haven't found this mentioned anywhere else (but it's possible to be - from /nt/type page {If more than one file is specified the file names are included in the output.
If a wildcard is used the file names are not displayed.} - from what I tested seems that if wild card is included name always is included) and this looks interesting to me.My test shows that when TYPE is used with wildcards or file list prints <newline>ProcessedFile<newline> to &2 stream and then the content:
@echo off
echo hello>lang.en
echo holla>lang.es
echo hallo>lang.de
echo --
echo -- testing type lang.??
echo --
type lang.??
echo --
echo -- testing type lang* 2^>nul
echo --
type lang* 2>nul
echo --
echo -- testing type lang* ^>nul
echo --
type lang?* >nul
echo --
echo -- testimg more lang*
echo --
more lang*
and the output:
-- -- testing type lang.?? -- lang.de hallo lang.en hello lang.es holla -- -- testing type lang* 2>nul -- hallo hello holla -- -- testing type lang* >nul -- lang.de lang.en lang.es -- -- testimg more lang* -- hallo hello holla
Type also supports list of files (and has the same behaviour) -> type lang.?? lang.?? con
EDIT: When in file list is used NUL is different and it's 'name' is not listed.
Last edited by npocmaka (09 Jan 2014 08:42)
Offline
Pages: 1