This thread will house the scripts i (or anyone who contributes) create while playing with Bash on Windows.
First up, a simple mount command. I am still trying to get the stdout, but piping to files will suffice for now. I am running Win 10 Build 14342.rs1_release.160506-1708
**Do -- Until will be cleaned up (or completely scrapped) when i can find a reliable way to deal with output.
#include<array.au3>
#include <WinAPIFiles.au3>
_WinAPI_Wow64EnableWow64FsRedirection(False)
$outfile = "test_mount_output.txt"
$iPID = run("C:\Windows\System32\bash.exe | mount > " & $outfile , "" , @SW_HIDE)
Do
sleep(100)
Until FileExists($outfile)
sleep(100)
processclose($iPID)
_ArrayDisplay(stringsplit(stringtrimright(fileread($outfile) , 1) , @LF , 2))