Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a game that I have set to startup in windowed mode, however I would like to know if there is a way to define the window size, here is an example of the target field:

C:/program files/game/game.exe -w

This part works just fine, I want to know if there is a way to say something like -1280x760 to define the window size.

share|improve this question

closed as not a real question by Karan, Brad Patton, Everett, Joe Taylor, Ƭᴇcʜιᴇ007 May 1 '13 at 15:00

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The conceptual misconception you have here is that you assume that command line options are generic or common across all programs.

They aren't.

For instance, I could write a program that shuts down the system when passing a command line argument such as -w, or -1280x760. I could write a program that deletes all files on your computer and sends a command to launch a missile in response to receiving any command line argument.

Command line arguments are application-specific, arbitrary commands that are completely dependent on the behavior of the individual program. So, where one game might treat -w as "run in windowed mode", another game might treat it as "make it impossible to ever win the game again, and deactivate my multiplayer account".

Since you said "game" (in the generic) instead of telling us what game you are playing in particular, we can not help you any further.

share|improve this answer
The game I am trying to play is diablo 2 – HerrAmann May 1 '13 at 0:48
Let me google that for you. First result: here. Scroll down a bit. -res800 start window in 800x600 -res640 start window in 640x480 – allquixotic May 1 '13 at 0:52
I was hoping there would be more options than just the 2 resolutions, but thank you for the help – HerrAmann May 1 '13 at 0:57
You can try -res1280 or -res1024 but if it doesn't do anything, then probably nothing else is supported. Can't you set the resolution manually in the game settings? – allquixotic May 1 '13 at 0:59
The game engine would have to be open-sourced so that a programmer could go in and increase resolution support to something higher, that is the only way I can think of that would raise the maximum resolution beyond 800x600. So you should probably settle with what you have. – allquixotic May 1 '13 at 14:07

Not the answer you're looking for? Browse other questions tagged .