I want to pass a variable to a file with alternative data stream (ADS) in c#.
Batch example:
Put a flag:
echo true > c:\temp\a.7z:flag
Read the flag:
more < c:\temp\a.7z:flag
If I pass the batch command as an argument to cmd.exe (with Process object), I get the start message of cmd.exe:
Process myProcess = new Process();
myProcess.StartInfo.Arguments = args;
myProcess.StartInfo.FileName = exe;
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users...\Visual Studio 2015\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug>
Is there any possibilty to use the batch command without using cmd.exe?