0 of 0

File information

Last updated

Original upload

Created by

mtreis86

Uploaded by

mtreis86

Virus scan

Safe to use

Tags for this mod

About this mod

I have some scripts I use, posting them here in case anyone needs something similar

Permissions and credits
Changelogs
#some useful powershell scripts to be ran from the mods folder

#this line will scan subfolders for .bsa and .ba2 files and display a table of files found sorted by size
get-childitem -path ./ -recurse -include "*.bsa","*.ba2" | sort-object -property length -descending | format-table -autosize -property length,name,directory | out-string -width 4096 | out-file ./bsasize.txt

#this line will scan subfolders for .pex files and sort the resulting directories by number of files found
get-childitem -path ./ -recurse -filter *.pex | group-object -property directory | sort-object -property count -descending | format-table -autosize -property count,name | out-string -width 4096 | out-file ./scriptcount.txt

#this line will copy all found .bsa files to a test directory (makes it easier to examine them all with bsa browser - search in there for .pex to see how many scripts there are in each bsa)
#note that this will make a folder in the directory next to it eg if ran in /modorg/mods/ the bsas will be copied into /modorg/bsas_from_script/
mkdir ../bsas_from_script; get-childitem -path ./ -recurse -include "*.bsa","*.ba2" | copy-item -Destination ../bsas_from_script/