Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

add comment

1 Answer 1

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
4  
Let me google that for you. First result: here. Scroll down a bit. -res800 start window in 800x600 -res640 start window in 640x480 –  ÃŁŁǫǛȉЖΦΤїҪ 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? –  ÃŁŁǫǛȉЖΦΤїҪ May 1 '13 at 0:59
2  
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. –  ÃŁŁǫǛȉЖΦΤїҪ May 1 '13 at 14:07
show 1 more comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.