in reply to Windows Username

Untested, I have no windows.
my $username = $ENV{USERNAME};
Boris