• 0

Best way to delete .pdfs?


Question

At my place of business, employees scan in documents that have confidential (HIPAA) information.

These files get attached to a chart that gets sent to the state.

Problem is that the .pdf scans reside on the computer and users don't always delete them which is a security risk.

Anyone have any creative ideas or know of software to delete .pdf files that sit in certain folders?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

At my place of business, employees scan in documents that have confidential (HIPAA) information.

These files get attached to a chart that gets sent to the state.

Problem is that the .pdf scans reside on the computer and users don't always delete them which is a security risk.

Anyone have any creative ideas or know of software to delete .pdf files that sit in certain folders?

Schedule a task to run a script. Write a short, simple script that deletes .pdf files from those folders.

http://windows.microsoft.com/en-us/windows7/Schedule-a-task

Link to comment
Share on other sites

  • 0

Auto-run batch script that does:

del locationoffiles/*.pdf ?

or something a little more advanced that only deletes files over a certain number of days (example below is 2 two weeks)

forfiles /p c:\locationoffiles /s /m *.pdf /d -14 /c "CMD /C DEL @file /Q /F" >> c:\somelocation\filesdeleted_log.txt

Edit:

Flags used:

/p ? starting directory

/s ? include sub-directories

/m ? wildcard to search

/d ? date range to work on, uses modified date so -14 is older than 14 days

Del:

/q - quiet, don?t prompt for confirmation

/F ? force delete read only files

Link to comment
Share on other sites

  • 0

Set a default scan folder, then create a batch script to delete everything in that folder once a day.

That's what we do at work, anything the scanner scans is auto saved on to the server. The folder is then emptied at 2am each day.

Link to comment
Share on other sites

  • 0

Logon script/batch script on startup/batch script on a scheduled task.

that was going to be my suggestion.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.