Hello all ,
I have a DOS Batch that export data from an application,
After this export I get a ".csv" that end by a semicolon,
I want to delete this semicolon for each line,
Thanks in advance,
delete the last caracter for each line of the generated file
Moderator: DosItHelp
Re: delete the last caracter for each line of the generated file
If your DOS Batch exports the data, just change that part of the code that prints the line and avoid the semicolon at the end of the line or remove it:
penpen
Code: Select all
:: sample code removing the last character of a line in environment variable
set "line=Test line;"
echo(%line:~0,-1%
Re: delete the last caracter for each line of the generated file
Please show us the code you are already using so we are not guessing at any possible solutions to your problem.