ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Locate and Delete only .csv from the machine

    IT Discussion
    2
    3
    401
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LakshmanaL
      Lakshmana
      last edited by

      How to locate and delete the .csv files from the machine ?I need delete all the .csv files from the machine through the help of the Powershell ?
      Any suggestions ?

      Once deleted the new .csv files will come as entrance and that needs to be copied to the folder

      Aim : Delete old .csv files from the machine and copy the new .csv to the new location

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by

        You would use Remove-Item to delete old .csv files and then you would use Copy-Item to copy new .csv files to a new location.

        1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          PowerShell 5.1: Remove-Item
          https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-item?view=powershell-5.1

          PowerShell 5.1: Copy-Item
          https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/copy-item?view=powershell-5.1

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post