Im trying to load this file to get some values of this line.
And write another file with these values.
More specifically, I want to get time and text values to make a subtitle.
Search found 7 matches
- 25 Jun 2009 14:19
- Forum: DOS Batch Forum
- Topic: FOR not loading files with extremely long line
- Replies: 3
- Views: 6544
- 24 Jun 2009 21:39
- Forum: DOS Batch Forum
- Topic: FOR not loading files with extremely long line
- Replies: 3
- Views: 6544
FOR not loading files with extremely long line
I'm having a problem... When I use the FOR command to load a file that has just one realy long line (like 50000+ chars). it does not load and no warning error appears, looks like the file was loaded, but no lines were found. for /f "tokens=*" %%c in ("%file%") do (......
- 24 Jun 2009 13:12
- Forum: DOS Batch Forum
- Topic: HELP with "FOR LOOP" inside another
- Replies: 12
- Views: 15496
- 22 Jun 2009 09:21
- Forum: DOS Batch Forum
- Topic: HELP with "FOR LOOP" inside another
- Replies: 12
- Views: 15496
First, I just realize that since I have 2000 lines on my file, using loop inside another will take too much time to process. Is there any other way? @ghostmachine4 Sure. This is what I'm trying to do: Transform this file format: time 00:00:00:00 text;blablabla time 00:00:03:29 text;blablablablblablb...
- 22 Jun 2009 03:05
- Forum: DOS Batch Forum
- Topic: HELP with "FOR LOOP" inside another
- Replies: 12
- Views: 15496
HELP with "FOR LOOP" inside another
Hello, I'm trying to do the following: for /F "tokens=1-2 delims=;" %%a in ('findstr /i "<Caption" "temp"') do ( set /a counter+=1 set /a N+=1 for /F "tokens=1-2 delims=;" %%e in ('findstr /i "text;" "temp"') do ( se...
- 17 Jun 2009 10:59
- Forum: DOS Batch Forum
- Topic: FINDSTR: Print the found string, not the line.
- Replies: 5
- Views: 18319
- 17 Jun 2009 01:56
- Forum: DOS Batch Forum
- Topic: FINDSTR: Print the found string, not the line.
- Replies: 5
- Views: 18319
FINDSTR: Print the found string, not the line.
Hello, I need some help here. If I use this command: for /F %%a in ('dir /b *.avi ^| findstr /i "S[0-9]*E[0-9]*"') do (echo %%a) It will print the full filename. But I just want it to print the found string, for example: If one of the files is "Lost.S02E11.HDTV.avi" it would prin...