Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > pipe > redirection bug in Windows XP x64 Pro !!!!!?????!!!!!! 1> output.txt ?????

Reply
Thread Tools

pipe > redirection bug in Windows XP x64 Pro !!!!!?????!!!!!! 1> output.txt ?????

 
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Hello,

I setup the following situations in Windows 95 and Windows XP x64 Pro
edition with the following results:

c:\test\sub\project1.exe (loads the parameter as textfile and shows it)
c:\test\sub\showme.txt (contains some text)
c:\test\runme.bat (batch file containing the following
instructions

runme.bat:

"sub\project1.exe" "sub\showme.txt" > "sub\output.txt"

Results:

1. Windows 95:

Output.txt will contain the text of showme.txt.

2. Windows XP x64 Pro FAILS THIS TEST:

Output.txt remains empty ?!?!?!?!

WINDOWS XP x64 PRO ****S UP WITH THE FOLLWING COMMAND:

"sub\project1.exe" \sub\showme.txt" 1>"sub\output.txt"

NOTICE THE 1 that is not how it's supposed to look !

It's supposed to look like Windows 95:

"sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

BUG BUG in XP x64 PRo ?!?!?!?!?!?!?!?!?!

Bye,
Skybuck.


 
Reply With Quote
 
 
 
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Apperently Windows XP and Linux have a new feature as explained in this
link:

http://www.thescripts.com/forum/thread574647.html

However it breaks old batch files which is ofcourse very very very very very
very bad.

DUMB ****ERS. Always support the old conventions as well.

The simple batchfile can be fixed as follows:

"sub\project1.exe" \sub\showme.txt" 1> "sub\output.txt"

DUMB ****ERS =D

2> is probably for error output or so, DUMB ****ERS.

just > is now BROKEN.

DUMB ****ERS ! =D

WOW VERY STRANGE

Since I modified the batchfile, NOW SUDDENLY IT ISSSSSSSSSSSSSSSSSS WORKING

HOW STRANGE IS THAT ?! WOW SOME SERIOUS BUGS IN THERE

"sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

Now suddenly it works just fine ?!

My bet is:

1. The first batchfile probably changed the standard output to some file or
so.

2. And then the second time the batch file is run without the 1 in it it
suddenly works or so.

NICE GOING THERE PEOPLE, NICE BUGS.

Cause I ain't dreaming, this happened.

Bye,
Skybuck.


 
Reply With Quote
 
 
 
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Yup it's DEFINETLY MALFUNCTIONING.

It just opened a new ms-dos box:

And the output.txt GETS ****ED:

??

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Hell,

Now it's not even working at all.

Not even 1> is working now.

BUGGGGGYYYY

Output.txt gets corrupted.

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
I think it's a Windows XP x64 Pro > redirection bug, but maybe it's a Delphi
TStringList Bug, so I include the Delphi newsgroup as well in case it's bug
with Delphi but probably not.

Problem description:

I setup the following situations in Windows 95 and Windows XP x64 Pro
edition with the following results:

c:\test\sub\project1.exe (loads the parameter as textfile and shows it)
c:\test\sub\showme.txt (contains some text)
c:\test\runme.bat (batch file containing the following
instructions

runme.bat:

"sub\project1.exe" "sub\showme.txt" > "sub\output.txt"

Results:

1. Windows 95:

Output.txt will contain the text of showme.txt.

2. Windows XP x64 Pro FAILS THIS TEST:

Output.txt remains empty ?!?!?!?!

WINDOWS XP x64 PRO ****S UP WITH THE FOLLWING COMMAND:

"sub\project1.exe" \sub\showme.txt" 1>"sub\output.txt"

NOTICE THE 1 that is not how it's supposed to look !

It's supposed to look like Windows 95:

"sub\project1.exe" \sub\showme.txt" > "sub\output.txt"

BUG BUG in XP x64 PRo ?!?!?!?!?!?!?!?!?!

OUTPUT.TXT GETS CORRUPTED no matter which pipe is used:

1> CORRUPTS OUTPUT.TXT
> CORRUPTS OUTPUT.TXT


Here is the Delphi source:

Who can make sense of this ?

program Project1;

{$APPTYPE CONSOLE}

uses
SysUtils,
Classes;

procedure Main;
var
vStringList : TstringList;
vIndex : integer;
begin
vStringList := TStringList.Create;
vStringList.LoadFromFile( ParamStr(1) );

for vIndex := 0 to vStringList.Count-1 do
begin
writeln( vStringList[vIndex] );
end;

vStringList.Free;
end;

begin
try
Main;
except
on E:Exception do
Writeln(E.Classname, ': ', E.Message);
end;
readln;
end.

Initially I also used:

writeln( vStringList.Text );

So I changed it to a loop in case maybe carriage return causes problems or
so but it doesn't seem to be the case ?!

So I believe it's a bug in X64 PRO ?!

What you believe bitches ?! =D

STINKY ****, I HATE THIS KIND OF ****.

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Also be sure to test it multiple times.

Try using stuff like:

2> "sub\Output.txt"

It will **** things up !

When you try to switch back to

1> "sub\Output.txt"

So first things seem to be working, but then as you test more and more it
corrupts stuff.

Try multiple ms-dos boxes. Open/Close/Open run the batchfile.

CRAZY.

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
It's just not working at all now:

project1.exe lul.txt > output.txt

output.txt corrupted ?!

WTF ?!

Very strange.

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Look what happens:

project1.exe lul.txt 1>output.txt

THAT NOT CORRECT.

X64 simply ****s up !

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
It simply doesn't work.

Very strange, I enter things manually without batchfile with following
results:

D:\test\hier>dir
Volume in drive D has no label.
Volume Serial Number is F046-4F7A

Directory of D:\test\hier

20-01-2008 22:03 <DIR> .
20-01-2008 22:03 <DIR> ..
20-01-2008 21:47 46 lul.txt
20-01-2008 22:09 5 output.txt
20-01-2008 21:50 95.232 Project1.exe
20-01-2008 22:03 33 RunMe.bat
4 File(s) 95.316 bytes
2 Dir(s) 53.586.190.336 bytes free

D:\test\hier>project1.exe lul.txt > output.txt


D:\test\hier>type output.txt
?
D:\test\hier>

lul.txt contains:

Ik ben een dikke lul

That shouldn't be a problem.

WACKY ?!?!?!?!?!?!

Bye,
Skybuck.


 
Reply With Quote
 
Skybuck Flying
Guest
Posts: n/a
 
      01-20-2008
Hmm now it's working again with a new textfile:

D:\test\hier>project1.exe kut.txt > output.txt


D:\test\hier>type output.txt
**** you bitch

D:\test\hier>


Kut.txt doesn't contain a carriage return, maybe problems with CR and such.

Bye,
Skybuck


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DebugView help not working on Windows XP X64 Pro and Windows 7 x64 (?) Skybuck Flying Windows 64bit 4 08-11-2009 09:41 PM
Batchfiles, Pipe > Output.txt, Redirection might fail with Unicode text files ?!?!?! Skybuck Flying Windows 64bit 0 01-20-2008 09:22 PM
[named pipe] i wanna know about validate of pipe handle of client lee, wonsun C++ 1 11-02-2004 04:29 AM
Re: pipe redirection LibraryUser C Programming 0 08-31-2003 02:59 PM
Re: pipe redirection Joona I Palaste C Programming 0 08-31-2003 02:43 PM



Advertisments