Skip to content

Instantly share code, notes, and snippets.

@dimm0k
Created August 8, 2013 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimm0k/6185454 to your computer and use it in GitHub Desktop.
Save dimm0k/6185454 to your computer and use it in GitHub Desktop.
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