How can I read just the x line from a.txt file?
The file contains all the names of a directory, I would just like to read X lines. X can be a number that can vary from 1 to 99
Modify it based on this You will need to do your need, but the script file below will loop through 'directories.txt', and the line of the line until you hit the maximum number of lines set in maxlines
Content ECHO
@ECHO OFF SettleLock enabled Extension SET / A MaxLines = 1 SET / A LineCoupon = 0 for / F %% A In (DirectoryText) DO (If! Linecout! GeQ Exposures% GOAO Acceptor Loop ECOSH% % SET / One LineCount + = 1): ExitLoop PAUSE
Comments
Post a Comment