FileOpen - Clear or Remove Alternate Data Streams? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
zcooler
Posts: 455
Joined: 11 Jan 2014, 04:59

FileOpen - Clear or Remove Alternate Data Streams?

16 Jun 2018, 13:17

If doing this:

Code: Select all

stream := FileOpen("F:\Ny mapp\20180116_20-59-02_Discovery Channel_Gold Rush  Alaska - S08E03 - “Busted And Bushfixed”.ts:EPGDescription", "w", "UTF-8")
stream.Write("Ett nygift par bestående av en rik flicka och ★★★★☆ en fattig pojke ger sig av på en katastrofal smekmånad i Europa")
stream.Close()
MsgBox % FileOpen("F:\Ny mapp\20180116_20-59-02_Discovery Channel_Gold Rush  Alaska - S08E03 - “Busted And Bushfixed”.ts:EPGDescription", "r").Read()
...how could I clear (properly) or remove the EPGDescription stream programatically? If stream.Write("") does not clear it entirely (3 remaning bytes).
Can do it with poweshell, but not with AHK afaik.
zcooler
Posts: 455
Joined: 11 Jan 2014, 04:59

Re: FileOpen - Clear or Remove Alternate Data Streams?

16 Jun 2018, 14:01

Deleting the file is not my objective, deleting the EPGDescription stream only is, meaning when enumerating the streams (with powershell) it's no longer detected. Im after better ADS handling for AHK...if so it might be possible to build a really nice ADS application.
User avatar
Flipeador
Posts: 1204
Joined: 15 Nov 2014, 21:31
Location: Argentina
Contact:

Re: FileOpen - Clear or Remove Alternate Data Streams?  Topic is solved

16 Jun 2018, 14:24

Who said delete the file?. Just specify the stream ... FileDelete filepath:stream
It seems that ReFS will only support up to 128K.
zcooler
Posts: 455
Joined: 11 Jan 2014, 04:59

Re: FileOpen - Clear or Remove Alternate Data Streams?

16 Jun 2018, 15:08

Flipeador wrote:Who said delete the file?. Just specify the stream ... FileDelete filepath:stream
Thanks, that works :)
Flipeador wrote:It seems that ReFS will only support up to 128K.
Only heard negative stuff about ReFS, hope it won't replace NTSF anytime soon, cuz in current state it's far from an improvement.
User avatar
Flipeador
Posts: 1204
Joined: 15 Nov 2014, 21:31
Location: Argentina
Contact:

Re: FileOpen - Clear or Remove Alternate Data Streams?

16 Jun 2018, 15:45

Only heard negative stuff about ReFS, hope it won't replace NTSF anytime soon, cuz in current state it's far from an improvement.
I agree with you. :wave:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CrowexBR, Google [Bot] and 280 guests