Added attribute control to win32 console.
Fixed file permissions.