Search found 4 matches

by loftusm
14 Sep 2013 05:15
Forum: DOS Batch Forum
Topic: stripping spaces from text file input
Replies: 7
Views: 8657

Re: stripping spaces from text file input

He certainly has.
thanks for you help.
by loftusm
14 Sep 2013 02:23
Forum: DOS Batch Forum
Topic: stripping spaces from text file input
Replies: 7
Views: 8657

Re: stripping spaces from text file input

Thanks foxidrive I can't believe how simple that was. Much appreciated. Just for my own personal growth and development are you able to fix my attempt. I am trying to remove the trailing spaces from each field of the input line on the way through the loop and reconstruct the line at the end. @echo o...
by loftusm
13 Sep 2013 22:09
Forum: DOS Batch Forum
Topic: stripping spaces from text file input
Replies: 7
Views: 8657

Re: stripping spaces from text file input

Thanks ST
can we remove all the trailing spaces from the comma back.
Your script removes 1 space a treat but I would like to get rid of all of them.

thanks so much for your help.
by loftusm
13 Sep 2013 21:16
Forum: DOS Batch Forum
Topic: stripping spaces from text file input
Replies: 7
Views: 8657

stripping spaces from text file input

Hi I am reading in a csv file and want to strip all trailing spaces from each field and then output it to a new file. I need some help. ---------------------------------------------------- @echo off setlocal ENABLEDELAYEDEXPANSION set inputfile=part_5.csv for /f "tokens=1,2,3,4,5 delims=,"...