Search found 9 matches

by NYTReader123
04 Feb 2009 16:50
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

Hi again forum readers:

I have still not had any luck with my question regarding the FOR loop in my last post above. If anyone has a few seconds to take a look at it and can point out my mistake I would be greatly appreciative!
by NYTReader123
27 Jan 2009 10:00
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

thanks again (and one more question: ugh)

Jeb: Thanks again. I obviously should not be writing batch files at 4 in the morning. Your tweak of my code worked perfectly (again). I owe you a beer!!! Unfortunately I have one one other issue which I had not noticed before. From the end of the code which you had suggested before, I cannot get the...
by NYTReader123
26 Jan 2009 11:36
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

code that works (and one more question)

Jan and board readers: Following Jan's great suggestions, I got the code working. Here is what I used: @ECHO off SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION REM firstrow will hold the row number just before the data begins REM headers will hold list of variable names For /F "token...
by NYTReader123
20 Jan 2009 04:09
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

Jan: Thanks a ton for your comment! I had actually figured out something along the lines of your first points over the weekend, but I never would have thought of the loop at the end of your code. Really helpful!! I have been a bit buried at work, but will try your code in the next couple of days. I ...
by NYTReader123
15 Jan 2009 21:00
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

follow-up

Hi everyone:

I hope this is not a violation of the etiquette here, but I am still struggling with this problem. If anyone can pass along some suggestions on my code and questions from my 9 Jan posting I would be greatly indebted!
by NYTReader123
09 Jan 2009 03:51
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

Thanks Jeb for the suggestion (and sorry for my slow response)! My main stumbling block is how to limit the lines which are echo'd from the tmp.csv file. My strategy was to find the row right before the data starts and also to count the number of rows in the file (since I want to stop echo'ing at th...
by NYTReader123
31 Dec 2008 05:41
Forum: DOS Batch Forum
Topic: Extract rows from text file and slight reformatting
Replies: 10
Views: 14814

Extract rows from text file and slight reformatting

Hi: I have a pretty straightforward objective, but I am having problems getting the code to work. Any help or suggestions from the DOS gurus here would be most appreciated! Short version --------------- - want to extract a consecutive set of rows from a text file (omitting rows from the top and the ...
by NYTReader123
24 Sep 2008 18:20
Forum: DOS Batch Forum
Topic: Convert Text to Percent Encoded (Hex) Url
Replies: 2
Views: 10514

Thanks--this works great! I doubt I would have come up with any of your slick tricks (looping to replace the "*", using the "'" placeholder, or even mixing the DISABLED/ENABLEDELAYEDEXPANSION). In fact the only change I had to make was in the placeholder character since the crazy...
by NYTReader123
15 Sep 2008 20:12
Forum: DOS Batch Forum
Topic: Convert Text to Percent Encoded (Hex) Url
Replies: 2
Views: 10514

Convert Text to Percent Encoded (Hex) Url

Hi: I have a text file which I am trying to convert to Hex format (I am passing the resulting strings to a wget call, and the website I am calling is finicky about accepting non-standard English characters-- à,ÿ, etc -- or even some English characters-- such as &, *, ?. The website will read &qu...