I have batch file that sets up the desktop environment for me when I am writing code. The file is named: SetEnv.cmd
and it opens 3 other windows:
- An instance of Windows Explorer that is set to the app server's deploy directory.
- A second instance of Windows Explorer that is set to the directory where my deployment file is written.
- A console window to start my application server.
Here are the contents of SetEnv.cmd
:
Explorer /n,c:developjboss-4.2.3.GAserverdefaultdeploy
Explorer /n,c:developProjectMappingdeploy
cmd /c SetupEnvCmd.cmd
And here are the contents of SetupEnvCmd.cmd
:
cd C:developjboss-4.2.3.GAin
run
Every time I run this, I have to waste time rearranging and resizing the windows. I don't want to run the windows minimized, because I interact with each window many times while writing and testing code. Is there any way I can control the position and/or size of the windows that are opened from within the script?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…