Code: Select all
@echo off
:save
set stringload=
set new=
if exist "%appdata%\BackupSaves.txt" (
echo How many strings do you want to load?
set /p stringload=::
cd "%appdata%"
<BackupSaves.txt (
for /l %%G in (0,1,%stringload%) do (
set /p _save%%G=)))
set _save
pause
The text file BackupSaves is full of paths to certain files and folders, one path on each line.
This program is meant to ask for a number of strings/lines to load, then... load it.
But it won't display it. There's always some sort of an error. I'm just using nested loops... a
for loop inside of one of those <file.txt loops... Help?
How do I count the number of lines in a text file?