[Solved] Create a BAT that can open a selection of executables? [duplicate]

[ad_1] @echo off :input echo What do you want to open? echo 1. Application1.exe echo 2. Application2.exe echo 3. Application3.exe set /p “app=: ” if “%app%”==”1” goto :start Application1.exe if “%app%”==”2” goto :start Application2.exe if “%app%”==”3” goto :start Application3.exe echo Invalid option! goto :input :start start “” “%~1” exit 2 [ad_2] solved Create a BAT … Read more

[Solved] What is ‘nul’ in batch file?

[ad_1] Nul exists as a file in EVERY directory. It swallows anything sent to it. Reserved names. These refer to devices eg, copy filename con which copies a file to the console window. CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and … Read more

[Solved] How To Make Chat Bot In Batch [closed]

[ad_1] search for keywords instead of full phrases: @echo off :loop set /p input=”> ” echo %input%|find /i “hi” >nul && echo Hello. echo %input%|find /i “your name” >nul && echo My name is Rob. What’s yours? echo %input%|find /i “my name is” >nul && echo That’s a nice name. echo %input%|find /i “wheather” >nul … Read more

[Solved] Progress bar shows “echo is OFF” message

[ad_1] Your actual question of why your echos aren’t working is perfectly reasonable, and it’s an extremely common error for beginners. | is a symbol that takes the output of one command and uses it as the input of another command. In your case, you effectively have echo by itself, which will simply return the … Read more

[Solved] What’s wrong in this batch/command script? [closed]

[ad_1] The solution to your issue was provided in the comments by LotPings, the syntax is Set /P “VariableName=PromptMessage” not Set /P “%Variable%=PromptMessage”. Here’s a modified example of your script: @Echo Off Set /P “password=Please enter the correct code in order to continue: ” ClS Echo Loading… Timeout 5 /NoBreak > Nul ClS If Not … Read more

[Solved] Batch – Commenting on YouTube [closed]

[ad_1] It is not possible to do with batch files, but look into VBScript, it has a “SendKeys” function which is like a typer and you can click in sertain positions. Which means you could create a program that clicks in the comment box and types, then presses “Post”. 4 [ad_2] solved Batch – Commenting … Read more

[Solved] Execute batch-file to start wifi hotspot as admin

[ad_1] The hardest part of this is to run a .bat file as admin automatically, without even right-clicking on it. You need to save this code as a .bat file: @ECHO OFF :: this tests if the file is running as admin >nul 2>&1 “%SYSTEMROOT%\system32\cacls.exe” “%SYSTEMROOT%\system32\config\system” if ‘%errorlevel%’ NEQ ‘0’ (GOTO askAdmin) GOTO gotAdmin :askAdmin … Read more