Computing.Net > Forums > Programming > mystery char in redirected output

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

mystery char in redirected output

Reply to Message Icon

Name: Mechanix2Go
Date: January 11, 2006 at 05:51:44 Pacific
OS: w2k sp3
CPU/Ram: PIII 933/256MB
Comment:

Here's the BAT:

:: music2.bat
@echo off > quit.bat
cls
if %1'==' cls & echo which tunes? & goto :eof

dir/s/b e:\music\*.mp3 > %TEMP%\mulist
dir/s/b e:\in\*.mp3 >> %TEMP%\mulist

if %2'==' find /i "%1" %TEMP%\mulist
if not %2'==' find /i "%1" %TEMP%\mulist | find /i "%2"
:: DONE

When I do this:

music2 buster brown

I get:

e:\music\singles\Buster Brown - Fannie Mae [Wolfman intro].MP3
e:\music\singles\Buster Brown - Fannie Mae.mp3

which is just right.

But when I do either of these:

music2 buster brown|list/s
music2 buster brown>some.m3u

I get:

♀e:\music\singles\Buster Brown - Fannie Mae [Wolfman intro].MP3
e:\music\singles\Buster Brown - Fannie Mae.mp3

The first char is 0c hex.

Anybody know how that 0c gets in there?

TIA


If at first you don't succeed, you're about average.

M2



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: January 11, 2006 at 09:40:46 Pacific
Reply:

Isn't 0c hex usually used to start a new page. Force a form feed.


0

Response Number 2
Name: Mechanix2Go
Date: January 16, 2006 at 13:22:51 Pacific
Reply:

Hi w-f,

I think that's correct.

But how's it getting in there?


If at first you don't succeed, you're about average.

M2


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: mystery char in redirected output

Redirected Output To HTML www.computing.net/answers/programming/redirected-output-to-html/19029.html

cheaking 2 chars in java www.computing.net/answers/programming/cheaking-2-chars-in-java/12452.html

question in C++ on ignoring chars www.computing.net/answers/programming/question-in-c-on-ignoring-chars/5765.html