Link to home
Create AccountLog in
Avatar of moore315
moore315

asked on

Batch file to convert comma Delim to Pipe Delim

I have the following MS-DOS script that converts a Pipe Delim file to a comma delim file:

@echo off
setlocal enabledelayedexpansion

for /f "tokens=*" %%a in ('type "%~1"') do (
   set line=%%a
   echo "!line:|=","!">>"%~2"
)


Now I need a script to convert the other direction - from comma delim to Pipe delim.  I don't understand exactly what the above script is doing so I can't make it work the other way.

ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of moore315
moore315

ASKER

That worked, thanks.