EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
Sections
Index
About
Installation
Properties
Methods
ASP and dotNET
Further Information
  

 

 

ShredFile Method
 
     

Cryptocx v7 User Guide

 

ShredFile Method

This is the method that you use to shred a file. Shredding a file goes far beyond just deleting it. This method in Cryptocx will overwrite the data in the file 35 times with random data before then deleting the file. 

This procedure which goes beyond any Military or Commercial specification ensures that the file will be totally unrecoverable. 

 

Description

Securely Deletes a file (Shreds)

     
Syntax

x = object.ShredFile

The syntax of the ShredFile method has these parts:

 
Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

       
Remarks

If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong, if the method runs ok then the output from the method will = "TRUE".

You have to specify the SourceFile to Shred.

       
Returns

"TRUE" or a string stating what went wrong beginning with "Error:"

      
Example Sample Visual Basic Code to Shred a file:

Where Cryptocx1 is an instance of a Cryptocx Control.

Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"
Cryptocx.SourceFile = txtShred.Text

theResult = Cryptocx.ShredFile


'' Check to see what has happened (if the shredding went ok without errors)
''

If theResult = "TRUE" Then
  '' Ok, the shredding went well with no errors
Else
  MsgBox theResult
End If


'' Free up Memory Resources
''

Set Cryptocx = Nothing

 

 

 

 

Back to Contents Page

 

Click here to set this great site as your home page

Or click here to add it to your Favorites.

  
  
 

Copyright (c) EasyByte Software 1998-2008, info@easybyte.com