I'm just wondering if there is a cmd/batch command out there to make a file full screen. I'm not just talking about maximized I'm talking about like full screen like when you are playing a game. I know that /max makes the program maximized not FULL screen. If you do not know what I mean just hit F11 on windows. Thanks!
Make a shortcut to your batch file and the go to properties for the shortcut. Then somewhere in the properties window there will be a option for screen resolution in the display tab. Just up the res to the hight and width you need.
You can do it but you'll need windowmode.bat and getCMDPid.bat:
call getcmdbit.bat
call windowmode.bat -pid %errorlevel% -mode maximized
Open CMD windows and write the following code:
mode 800
Related
Let me explain like this: if I click on a Command Prompt icon in Windows 10, I get a window titled "Command Prompt" (I guess, we could call this "the title") - and if I right-click on the title bar of this window, and click Properties, it also says "Command Prompt" in the title bar of the Properties window as well (I guess we can call this "the window name"):
However, if I have a batch script, test.bat with these contents (see also https://ss64.com/nt/title.html):
title My Batch Title
pause
... and I double-click it, I get this:
... that is, the batch file cmd.exe window did get the title "My Batch Title" - but if you right-click/Properties, then the window name is "C:\WINDOWS\system32\cmd.exe" - and that would mean, that all other batch scripts will have the same window name.
I care for this because I'd like to have Windows remember manual position and size of some of my BATCH script windows, and Size batch windows and set in specific location implies that is done via title, but I'm changing the title, and have unchecked "Let system position window", and window position and size is still not remembered ... SO in this case, I think this means Windows is unable to honor unchecked "Let system position window", because Windows looks up the manual window size/position by window name, not by title - and "C:\WINDOWS\system32\cmd.exe" as window name is certainly not unique to my batch file.
So, is there a command I could use from a BATCH file, to change not just the title, but the window name of the cmd.exe window that gets spawned by the BATCH file?
Create shortcuts to your batchfiles.
Set the desired positioning in these shortcuts.
If you start the same batchfiles multiple times create multiple shortcuts with the appropriate positioning.
Start the batchfiles using the shortcuts and these will use the positioning set in the shortcuts.
No need to fiddle with window names/titles.
I often use Title %~n0 at the start of batchfiles so the window shows the name of the running script but that is unrelated to the positioning on the screen.
I am looking for an OSX shell command equivalent of Linux's scrot -u, which takes a screenshot of the active window (please note that this is for an automated script that shouldn't prompt the user to click on the desired window at every screenshot).
A possible alternative is an OSX equivalent of xwininfo, which gives coordinates and dimensions of the desired window, that I could use for an automated crop on a full screenshot.
Thank you.
QuickGrab makes this easy as it captures the current active window for you without worrying about window id.
You use it like this:
$ sleep 2 ; ./quickgrab -file ~/Desktop/Screenshot-`date '+%Y%m%d-%H%M%S'`.png
If you use the binary from this PR, then it will also capture the active Chrome window.
I'm experienced with many different programming languages. I decided to expand my horizons and try some simple batch scripts. I have a windows start up script that I'm running.
startupScript.bat
start "" "explorer.exe"
start "" "explorer.exe"
start "" "taskmgr.exe"
start "" "cmd.exe"
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Works great. I would like to be able to move the windows where I want them though. I'm running 5 monitors, and I want the two explorer windows on my bottom left monitor each taking half the screen. I want the command prompt and task manager in my top left monitor each taking half of the screen, and I want my chrome browser on my bottom right monitor taking up the whole screen.
Chrome remembers where it was, so that isn't a problem. The other windows don't though.
Is there a way for me to run keystrokes after each program is started? I could do "winkey+left", "winkey+left", etc... for each window if that's possible. Otherwise how might I accomplish this?
Also, when the command line is run, the properties go to defaults. Is there a way to use my command line settings so that it is sized right, has quick edit mode enabled, and has the colors that I set it to?
I'd try setting up a shortcut to the application with shortcut/Run=normal window; layout and hues to taste. Then start the shortcut (.lnk file) in your batch. Certainly works for cmd - can't say for the others...
I would have a look at AutoHotKey. I don't remember enough to tell you what your script should look like, but the little I remember tells me all you need is in their toolbox.
I have a batchfiles which basicly just "echo"s text into the cmd window. I compiled it to an exe but want it to be in full screen without borders and without taskbar.(Windows 7)
It should work without having to create a shortcut or any other settings like this.
It can be in the Batch code or the exe but it should start in fullscreen when - for example - I download and execute it on another computer without me having to set any settings.
Is that even possible in Batch?
If you mean running cmd.exe in fullscreen in Windows 7, it's basically impossible. Lots of people were complaining about it.
There are plenty "fake" fullscreen command lines.
You can use this one and run the batch there.
I have a batch script under Windows. When anyone will click on that script I want the command window to become full screen like we do by keyboard shortcut [Alt+Enter].
Can it be done automatically using any command in batch file?
In Windows XP, you need to start your program maximized (but not full screen) via "start /max" as follows:
start "Winow Title" /MAX "C:\batches\myfile.bat"
This command would be inside your original batch file, and call the real bath file.
I don't think there's a way to change the full screen-ness of an executing "cmd" command from within a batch file absent someone writing a special app to do so by emulating sending Alt+Enter to the parent process.
In Windows 7 (and probably Vista) you must run inside XP virtual machine for full screen mode.
There is none. You can write a small program doing so for you, though. There is the SetConsoleDisplayMode function.