Different behavior between Windows XP and Vista
Posted: 25 Sep 2009 17:47
Hello everybody.
I got two computers, one running Windows Vista x64 SP2 and other running Windows XP x86 SP3, and I am experiencing one different behavior between my operating systems.
The problem is exactly in this line of code:
If you run it on a Windows XP terminal you get this result:
But if you run it on Windows Vista terminal you get this result:
I really don't know if this issue is related only with the 64bit version of Windows Vista (I do not have a 32bit installation to test at this moment), but I know that this is because of the fsutil program. In older versions it returns a null character between driver names (what probally is a bug), but on Vista x64 this issue was "fixed".
Now I want to split the output of "fsutil fsinfo drives" into lines but I don't know how.
Can someone help me?
Any help is appreciated.
Regards,
I got two computers, one running Windows Vista x64 SP2 and other running Windows XP x86 SP3, and I am experiencing one different behavior between my operating systems.
The problem is exactly in this line of code:
Code: Select all
fsutil fsinfo drives | find /v ""
If you run it on a Windows XP terminal you get this result:
Code: Select all
Drives: A:\
C:\
D:\
E:\
F:\
But if you run it on Windows Vista terminal you get this result:
Code: Select all
Drives: A:\ C:\ D:\ E:\ F:\
I really don't know if this issue is related only with the 64bit version of Windows Vista (I do not have a 32bit installation to test at this moment), but I know that this is because of the fsutil program. In older versions it returns a null character between driver names (what probally is a bug), but on Vista x64 this issue was "fixed".
Now I want to split the output of "fsutil fsinfo drives" into lines but I don't know how.
Can someone help me?
Any help is appreciated.
Regards,