I want to read and write/add an alternate data stream(a.k.a Custom Attributes) of a file using C# which has Key-Value pair.
If I set "FileTag" using powershell command, I want to read the value of that "FileTag" in my C# code which I can see using "get-content" powershell command.
set-content '\AZ66ST9001.COM\vol2_Stealthbitstest\00-transfer\adsTagTest.txt' -stream "FileTag" -Value "TagValue"
get-content '\AZ66ST9001.COM\vol2_Stealthbitstest\00-transfer\adsTagTest.txt' -stream "FileTag"
Basically, I need a C# code using which I can perform the above 2 PowerShell commands "set-content" & "get-content".
Appriciate your quick help.