i have a folder like C:\temp with a lot of .csv files in it. All of these .csv files got the same structure without header. I need to delete the second and third column of each .csv file in this folder. How can i do this in powershell?
You can use the site search faility, to find some of the, probably thousands, of examples of scripts which are performing that task, and incorporate what you've learned from those into your own solution. Please also note, that there are no columns in a CSV file, there are records made up of Comma Separated Values, (although other separators can be used too).
CommaSeparatedValues, (although other separators can be used too).