I have like a log.txt file which contains:
MyName
My batch:
@echo off
set name= [log.txt]
in the [log.txt] part, it should read 'MyName' from the log.txt file, to set it as 'name'.
How?
I have like a log.txt file which contains:
MyName
My batch:
@echo off
set name= [log.txt]
in the [log.txt] part, it should read 'MyName' from the log.txt file, to set it as 'name'.
How?
You can also use
which might be considered shorter and a little less ugly.
In cmd.exe, there's only this ugly way: