Hello
I need cmd to read a text file and copy the first line and paste it like this
goto %the text from the text file here%
Like a video game with saved game
SET /p LabelName= <FileName.txt GOTO %LabelName%Change "LabelName" and "FileName" to whatever applies to you.
THX
ALOT
:D :D :D
It doesn't need to be from the first line however. Using this code, you will be able to have multiple load points within one file.
@ECHO OFF SETLOCAL EnableDelayedExpansion FOR /f "tokens=*" %%a IN ('FINDSTR LabelName "P:\a\t\h\FileName.txt"') DO ( SET Variable=%%a ) GOTO %Variable%Both will work, but this one will allow to have just one file.
Nevermind, that code won't work. It require you to know the load point, before it loads. IE it doesn't do what you want it to. I couldn't edit as I'm on my iPhone, and it won't let me hehe.
IPHONE ?!?!? So you mean that every thing you have typed to me has been on the iphone . lol .
No, I was at work when I said that. Everything else was on my laptop.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |