Search found 3 matches

by kabalman
05 May 2010 10:28
Forum: DOS Batch Forum
Topic: FOR command - skip first row in the file
Replies: 1
Views: 24402

FOR command - skip first row in the file

Hi I have a file temp.txt with a list of file names generated via a dir /b /o:N file*.txt > temp.txt command. So temp.txt contains file.txt file1.txt file2.txt I now want to read the contents of temp.txt and skip the first row and delete the files whose filenames are denoted in the other 2 rows. To ...
by kabalman
05 May 2010 10:11
Forum: DOS Batch Forum
Topic: FOR command - help please
Replies: 3
Views: 4899

Re: FOR command - help please

Thanks a lot. That worked absolutely fine.
by kabalman
04 May 2010 10:48
Forum: DOS Batch Forum
Topic: FOR command - help please
Replies: 3
Views: 4899

FOR command - help please

Hi I have a file temp.txt with the following string content C:\folder\file1.txt I need to extract the string file1.txt from temp.txt and store the value in a variable. I did this using a batch script with the following commands set "DirPath=C:\folder\" for /f "tokens=* delims=%DirPath...