Left some stuff out.
my $PathIAm = $?FILE;
( my $IAm = $PathIAm ) ~~ s| .* "/" ||;
my Str $BatFile = $PathIAm ~ ".bat";
$BatFile ~~ s:global| '\\' |/|;
my Str $OS = $*KERNEL.name;
if not $OS eq "win32" {
say "Sorry, $IAm only work in Windows.";
exit; }
( $IAm = $PathIAm ) ~~ s| .* '\\' ||;
my Str $CmdStr =
Q[@echo off] ~ "\n" ~
Q[C:\Windows\System32\fsutil.exe usn readdata ] ~
Q["] ~ $FileName ~ Q["] ~ "\n";
# say $CmdStr;
spurt( $BatFile, $CmdStr );
say qqx { $BatFile };
