通过命令行设置应用程序的窗口位置 [英] Set The Window Position of an application via command line
问题描述
我有一个应用程序从我的桌面的0x0位置开始。我想打开它在我的桌面中心。我不想打开它,并使用移动命令将其移动到中心,只是希望我的应用程序立即开始在中心位置。
I have an application which start in 0x0 position of my desktop. I want to open it in center of my desktop. I do not want to open it and use a move command to move it into center, just want my app to start immediately in center position.
有任何方法这通过命令提示符?
Is there any way to do this via command prompt? Any other way?
推荐答案
您需要一个额外的实用工具,例如 cmdow.exe 来完成此操作。特别查看 / mov
开关。您可以从 cmdow
启动程序或单独运行它,然后调用 cmdow
以根据需要移动/调整大小。
You'll need an additional utility such as cmdow.exe to accomplish this. Look specifically at the /mov
switch. You can either launch your program from cmdow
or run it separately and then invoke cmdow
to move/resize it as desired.
这篇关于通过命令行设置应用程序的窗口位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!