I made a bat file and during execution, it displays a title in the command window.
The title includes the bat filename, and it is displayed in full, including the .bat extension.
The code I'm using to do this is shown below (see the Title command on the 5th line).
The names I have used:
- Filename:
Facebook.bat - Title (line 5):
Hacking %~nx1 Called Domainwhich outputsHacking Facebook.bat Called Domainin the title-bar.
I want the title-bar to read Hacking Facebook Called Domain.
How do I do this?
My bat file:
@echo off
color 0d
call :sub *.bat
:sub
Title Hacking %~nx1 Called Domain
echo Test 1
timeout /t 2
echo Test 2
timeout /t 2
echo Completed
timeout /t 2
exit
