Welcome, guest | Sign In | My Account | Store | Cart

Maybe you know what it's possible to invoke mshta.exe inside batch with some specific parameters. So, it helps to access for screen which keeps data about screen resolution.

Batch, 3 lines
1
2
3
@echo off
  mshta "javascript:res=screen.width+'x'+screen.height;alert(res);close();" 1 | more
exit /b
Created by greg zakharov on Wed, 21 Nov 2012 (MIT)
Batch recipes (42)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks