Skip to content

Instantly share code, notes, and snippets.

@dimm0k
Created Aug 8, 2013
Embed
What would you like to do?
F1::
ColToRemove = 4
File = C:\Users\vmok9ne\Desktop\cmdutils\Xeroxmeterreads.csv
Output =
Loop, Parse, %File%, `n, `r
{
Loop, Parse, A_LoopField, CSV
If (A_Index <> ColToRemove)
Output .= A_LoopField ","
StringTrimRight, Output, Output, `, ; Remove trailing comma that will result
Output .= "`r`n"
}
msgbox, %Output%
return
F2::reload
@Drugoy
Copy link

Drugoy commented Aug 8, 2013

F1::
ColToRemove = 4

FileRead, File, C:\Users\vmok9ne\Desktop\cmdutils\Xeroxmeterreads.csv

Output =
Loop, Parse, File, `n, `r
{
  Loop, Parse, A_LoopField, CSV
    If (A_Index <> ColToRemove)
        Output .= A_LoopField ","
    StringTrimRight, Output, Output, `, ; Remove trailing comma that will result
    Output .= "`r`n"
}
msgbox, %Output%
return

F2::reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment