Fuck teachers who do things like that.
I was failed out of a class (at Harvard no less) for doing too well. The instructor didn't think it was possible for me to do as well as I did, in the time I had, and determined that I had cheated on the final project.
Some of us don't need to ask classmates - I was the nerdy autist who (quite literally) asked for DOS manuals for birthday presents as a child. Dealing with extended memory, high memory, upper memory - all of this was common when dealing with video games, and it was often necessary to move things around in memory to deal with (for example) the CDROM driver (or mouse driver) using up memory in a way that caused issues with DOS Protected Mode apps. Or, TSRs would cause conflicts. When teachers assume that students are incapable, they are bad teachers.
If you are talking about a limit on a server (rather than a batch file), then you are likely talking about unix quotas and limits. These are also common limitations, and one I ran into on the FreeBSD nodes that I would use. I was in around 5th grade at the time.
If I ran into a resource limit on someone else's system (for example, a shared CS unix box), I'd check the quota and see if my limit is soft or hard. If it's soft, the command `ulimit` would let the soft limit be raised up to the hard limit, likely fixing the crash. If it's a hard limit, I'm calling IT, not the professor.
It's possible you actually meant batch file, but when you say "needed more than you had", that's an interesting assumption if people are permitted to use their own computers (unless you are talking about the native DOS memory limitations, which can be fixed with LOADHIGH, which gets you out of the DOS conventional memory area.