Under NT-style cmd.exe, you can loop through the lines of a text file with
FOR /F %%i IN (file.txt) DO @echo %%i
Type “help for” on the command prompt for more information. (don’t know if that works in whatever “DOS” you are using)
More Related Contents:
- Combining multiple text files into one
- Batch: Remove file extension
- Script to associate an extension to a program
- Check if any type of files exist in a directory using BATCH script
- Batch file to delete first 3 lines of a text file
- batch file: list rar file in specific folder and write result into text file
- How do I find the current directory of a batch file, and then use it for the path?
- Keep CMD open after BAT file executes
- In MATLAB, can I have a script and a function definition in the same file?
- Ant task to run an Ant target only if a file exists?
- Find file name from full file path
- Find duplicate lines in a file and count how many time each line was duplicated?
- Trying to copy file from one XP PC to another using WMI, since RPC and UNC are not available
- Get file version in PowerShell
- How to read/write from/to a file using Go
- How can I find encoding of a file via a script on Linux?
- Run .jar from batch-file
- for IE gives full path, need file name only
- JVM property -Dfile.encoding=UTF8 or UTF-8?
- Force download of ‘data:text/plain’ URL
- Is the MIME type ‘image/jpg’ the same as ‘image/jpeg’?
- Write variable to a file in Ansible
- How to move/rename a file using an Ansible task on a remote system
- Printing the last column of a line in a file
- Log4Net config in external file does not work
- Reading a .pdb file
- Parse a log4j log file
- Whats the default path for static files in Angular2?
- split file on Nth occurrence of delimiter
- Comparing folders and content with PowerShell