Is there some way I can get the file permissions for a folder or a file extracted to a file with some command in windows?
dir ??? > permissions.txt
If you have at least windows 2003 sp2, then you can use icacls.exe:
you enter file or folder without the brackets, in case it is not clear enough. If you have something older, then you can use setacl, which is a wonderful little tool, but a bit complicated to get started with.