Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
bodosko
- Posts: 7
- Joined: 17 Jun 2009 01:44
#1
Post
by bodosko » 24 Jun 2009 21:39
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.
Code: Select all
for /f "tokens=*" %%c in ("%file%") do (...)
Why ? How to correct this?
-
jaffamuffin
- Posts: 40
- Joined: 25 Jan 2008 14:05
#2
Post
by jaffamuffin » 25 Jun 2009 07:00
Yes. Probably some kind of limit.
There's probably another way you can do this, what is it exactly that you are trying to do?
-
bodosko
- Posts: 7
- Joined: 17 Jun 2009 01:44
#3
Post
by bodosko » 25 Jun 2009 14:19
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.
-
jaffamuffin
- Posts: 40
- Joined: 25 Jan 2008 14:05
#4
Post
by jaffamuffin » 25 Jun 2009 15:42
i'd probably use sed or something similar to extract patterns of text.