none
How to code this batchfile / powershell? RRS feed

  • Question

  • I would like to know on how to delete all file with ".csv" extension under folder C:\Users\Username\Downloads using either batch file or powershell script

    Does anyone have any suggestions?
    Thanks in advance for any suggestions

    Thanks in advance for any suggestions

    Saturday, June 29, 2019 2:47 AM

Answers

All replies

  • Kindly go through:

    Remove-Item


    S.Sengupta,Microsoft MVP Windows and Devices for IT, Windows Insider MVP

    • Marked as answer by oemMicrosoft Saturday, June 29, 2019 3:40 AM
    Saturday, June 29, 2019 2:55 AM

  • Thank you very much for suggestions (^v^)


    Thanks in advance for any suggestions



    Saturday, June 29, 2019 3:35 AM
  • I do not want to remove all items, and only delete file with "csv" extension under C:\Users\Username\Downloads.

    Do you have any suggestions on what conditions should be added into command?
    Thank you very much for any suggestions (^v^)


    Thanks in advance for any suggestions


    No.  Sorry but we can't read the documentation in that link.  Perhaps you can try reading it and telling us what it says.  Perhaps then we might understand how to do this.


    \_(ツ)_/

    Saturday, June 29, 2019 3:40 AM