How would you go about creating a file quarantine application

  antivirus, c++

In some anti-viruses such as Mcafee and Windows Defender have the ability to be able to take files that are viewed as ‘bad files’ and quarantine them as so to protect the user from running the application but also allow the user to read/view the file

Source: Windows Questions C++