Re: Checking existence of an NTFS "stream"



On Fri, 9 Jun 2006 16:49:19 +0000 (UTC), (Kenny McCormack) wrote in
comp.os.msdos.4dos:

I have a file "foo", and I want to check to see if foo:somestream
exists. Generally, I am happy that the 4DOS/TC command language
supports streams and most things more or less work. However, checking
existence is problematic.
[snip]
Anyway, is there a better method than using CRC32?

Parsing the output of LADS.EXE seems simpler than parsing the output of
DIR /:

$ dir /h /k /m /:
10/06/2006 11:33 0 foo
10,917,094 PistonPacers.WMV:$DATA
10,479 some.txt:$DATA

$ lads

LADS - Freeware version 4.00
(C) Copyright 1998-2004 Frank Heyne Software (http://www.heysoft.de)
This program lists files with alternate data streams (ADS)
Use LADS on your own risk!

Scanning directory C:\Temp\Test\

size ADS in file
---------- ---------------------------------
10917094 C:\Temp\Test\foo:PistonPacers.WMV
10479 C:\Temp\Test\foo:some.txt

10927573 bytes in 2 ADS listed

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.



Relevant Pages

  • RE: How to hide a file ?
    ... One way to transfer files with streams to another ... computer with NTFS is through the use of WinRAR. ... that if you were to move the ADS file to FAT that you would lose the files ... successive ADSs will eventually fill up all of the ...
    (Vuln-Dev)
  • Re: Alternate data Streams
    ... ADS probably does not slow down your system. ... To get rid of Alternate Data Streams on any file, move to a non NTFS media, ... You get Confirm Stream Loss messages when copying files with ADS to non-NTFS formatted media... ... Streams from jpeg files. ...
    (microsoft.public.windowsxp.general)
  • RE: How to hide a file ?
    ... The cygwin toolkit appears to be somewhat less braindead than Windows ... Explorer or CMD.EXE with handling ADS. ... Just a quick note on hiding using data streams... ...
    (Vuln-Dev)
  • Re: Alternate Data Streams
    ... > folder with .exe filenames? ... >> Streams are Crucial ADS ... There's one that'll add a "Streams" property sheet from where you can ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Messages stuck in the queue
    ... streams' files, but for apps that *are* ADS aware: ... An ADS-aware application must still treat ADSes as ADSes. ... view is too rooted in the apprehension that discrete files are ...
    (microsoft.public.inetserver.iis.smtp_nntp)