SetRes is a Win32 app which can change the resolution of the screen from command line parameters. Simply invoke it like so:
Notice: Please do not direct link to any files on this site, link
to the page containing the file! Thanks!
SetRes [width] [height]
Where width and height are the desired dimensions of the screen.
Source is included.