79602316

Date: 2025-05-01 18:06:56
Score: 6 🚩
Natty:
Report link

I tried your code for my .csv file with (,) as delimiter using the below code and i got output file with no data. Can you pls help if i am missing anything here to delete my last column out of 12 columns.

================================================================================================================

@echo off

setlocal EnableDelayedExpansion

(for /f "delims=" %%x in (MonthlyRecon_Actual.csv) do (

set "line=%%x"

for /F "tokens=1-5* delims=|" %%a in ("!line:,=|,!") do (

set "line=%%a%%b%%c%%d%%f"

)

echo !line:|=!

))>>MonthlyRecon_Actual_out.csv

===================================================================================================================

Reasons:
  • RegEx Blacklisted phrase (3): Can you pls help
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @echo
  • No latin characters (0.5):
  • Filler text (0.5): ================================================================================================================
  • Filler text (0): ===================================================================================================================
  • Low reputation (1):
Posted by: Srini