3

I want to make a batch file that opens in fullscreen as if you press Alt-Enter. And i would like it without scrollbar too, but i haven't found anything on it.

I have heard you can use vbs to send button presses, but how would i do that?

Remember i use Windows 10

  • @PIMP_JUICE_IT I would like a batch file which opens in fullscreen (aka the Alt+Enter). Im currently searching for a way of removing the scrollbar. – 7h3w1z4rd Aug 2 '16 at 14:58
  • Your way did not work, i tried WshShell.SendKeys "%{ENTER}" and it didn't work. – 7h3w1z4rd Aug 2 '16 at 17:29
1

It looks like the sendkeys key to send would be F11 rather than Alt+Enter so below is an example logic batch script that open a CMD window, maximizes that window to full screen, and then runs some logic, etc.

I'm not certain there is a batch script solution available to make the command prompt scrollbar disappear but below is a method which will work on Windows 10 for making the command prompt (CMD) full screen with the scrollbar.

Example Batch Script

@ECHO OFF

:VBSDynamicBuild
SET TempVBSFile=%temp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 900                                    >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{F11}"                            >>"%TempVBSFile%
ECHO Wscript.Sleep 900                                    >>"%TempVBSFile%"

CSCRIPT //nologo "%TempVBSFile%"

:: Put whatever logic below for your script to run in the full screen CMD window
ECHO Logic is fun
ECHO Fun is Logic
ECHO Just logically fun
PAUSE
GOTO EOF

Further Resources

  • This worked :D I will make a new question on how to remove the scrollbar as i see the "fullscreen" part is done. – 7h3w1z4rd Aug 3 '16 at 15:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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