For loop in Powershell RRS feed

  • Question

  • How do I convert the below code in Powershell ?

    for /f "tokens=1,2,3 delims=," %%A in (C:\Inputfile.csv) DO (
    setvars "%%A" "%%B"="%%C"

    The above code is working in DOS.

    Thanks in advance

    • Moved by Bill_Stewart Tuesday, May 8, 2018 7:10 PM This is not "translate code for me into new language" forum
    Wednesday, March 14, 2018 5:06 AM

All replies