100MB: $source = "C:\Users\Env:USERNAME\Desktop\Test\" This is the script I wrote and am using, it works fine with a filesize of e.g. I'm using Windows 10 with PowerShell 5.1 (64 bit) and my MaxMemoryPerShellMB is set to the default value of 2147483647. Of course I did search for a solution, but all the solutions I found were reading a file line by line which is kinda hard to do when the file only has 1 line.Īlthough PowerShell takes up to 4 GB of RAM when loading a 1 GB file, the issue is not connected to my RAM as I have a total of 16 GB and even with a game running in the background the peak usage is at around 60%. txt file (which has only 1 line!) and split it into multiple files with multiple lines, but whenever I try to I end up with a System.OutOfMemoryException. I want to Get-Content of a large (1GB - 10GB).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |