Reputation: 145
Is there a way for the title of a batch file to be the same as the file name of the batch file? I am constantly renaming files, so having the title of a batch file be the same as the file name would prevent me from constantly changing the title name.
Upvotes: 4
Views: 2286
Reputation: 86
I think you can do this by writing a line of code like this.
title %~n0
The %0
is the file path for the batch file and the ~n
removes the path and keeps the name.
Hope it works.
Upvotes: 7