you may hit the command line cannot be longer than 128(160?) char limitation in DOS. I forget if that can be fixed by some config.sys setting.

as for vga=791, it is a mode that support 1024x768 at 24 bit(?) color, if memory serve. You may google for that term and it will show up somewhere what you can specify.