| 1. |
Solve : "start app.bat" - in fullscreen? |
|
Answer» First of all; hi =) Batch files require the cmd window. This is the window you need to set to full screen. i did this and now cmd and all bat files run in full screen, but how can i change in back to normal? Quote from: Fairadir on September 27, 2008, 09:14:31 AM i did this and now cmd and all bat files run in full screen, but how can i change in back to normal?Press ALT + Enter when in the CMD window and reverse the process.Thanks alot for all the comments, but not exactly what I'm looking for. As said in my first post, I don't want the fullscreen to be default, only for this one .bat file. Can I do that? The mode command I've also tried, but again, in just resizes the windows, doesn't make it fullscreen. Is there a command which starts a process/batch file in fullscreen? Or someway I can start the shortcut it self, because I can make the one batch I need to run in fullscreen through a shortcut.Hmmmm.....That has been asked many times in the past and the ANSWER has always been the same. You can't.As mentioned, batch files require the cmd window. Try setting up the shortcut something like this: %windir%\system32\cmd.exe /k yourbatchfilehere Right click the shortcut, and check full screen on the Options tab. The batch command "reg add HKCU\Console\ /v Fullscreen /t REG_DWORD /d 1" will set every console application, for example cmd.exe, which all batch files are run from. Starting a batch file after that would make it fullscreen. You could use the "call" command for that. Replacing "/d 1" with "/d 0" resets this option. File1: reg add HKCU\Console\ /v Fullscreen /t REG_DWORD /d 1 call file2.bat File2: echo In fullscreen we are! pause reg add HKCU\Console\ /v Fullscreen /t REG_DWORD /d 0 Just thought I'd bring it up. //EmiLI cannot help, but this will sort out any problems with your code: Code: [Select]echo off set /p pass=<password.dat set /p password=Enter password: if %pass%==%password% goto correct exit :correct start app_here.bat exit This will exit even if you type nothing, when before you may have had some problems.I use something close to Sidewinder's solution. I set a global Environment Variable as follows: Code: [Select]Varname=Start /max %comspec% /k batfile.bat Batfile.bat will contain your script to be run.. Create another bat file (let's call in startup.bat) which contains: Code: [Select]echo off cls %Varname% When you click to open Startup.bat it will run the ENV Variable %Varname% which opens the command window in fullscreen then runs your Batfile.bat Of course: Code: [Select]Start /max Batfile.batmight work as well. Good luckOMG, devcom is right dudes it is mode 200 but you don't have to put it at the start of the program you can put it in any part of your program, once the person has typed the right pass word in or what ever just put this code into the batch file you want to run. if exist 'program used to open this one' goto fullscreen :fullscreen mode 200 :: continue on from there Or you could do it this way if exist 'program used to open this one' mode 200 Just so you know mode does not have to be 200 you can change it to what ever you want it to be, you can fiddle around with it and see the results that you get. hope that solved your problem, Tan_ZaI have create an easy way to do that. It's a EXE in C language name screen.exe He just simulate the TYPING on the KEYS Alt + Enter. It's simply. 505 donwloads at this time. Go on this link if you want to download it : Link Removed... It's easy to use. Just place it in the same directory of the Batch file and add this line in the Batch : Code: [Select]screen.exe You can use anothe way to do that. You can just copy the EXE in the "System folder" at this link : C:\Windows\System32 After that you can use this EXE everywhere the Batch file are. Windows XP only. P.S. I know this topic is old. So I just wan't to help the english communauty I'm a french guy. And I'm sory if my english is poor. See you everybody.daym last post in 2008 until this new post... mate the thing is this guy obviously wanted to program in batch and make it him self not use something that sounds so dodgy... even though this is like prob never gonna be SEEN again it was worth noting. regards, Tan_Za |
|