delete file script

  • When I write a ssis or powershell script to delete files in a folder, will that delete it into recycle bin or it deletes permanantly?

    Thanks

  • No idea, why don't you try it and tell us. My guess is permanently..

    CEWII

  • I did try it, and see they are not in recycle bin.

    But I just want to verify it, sometimes it is good to just delete into recycle bin in case some accidently deletion happens.

    Thanks

  • my Google-Fu is strong.

    you can optionally delete to the recycle bin with powershell:

    http://stackoverflow.com/questions/502002/how-do-i-move-a-file-to-the-recycle-bin-using-powershell

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply