Changeset 2227


Ignore:
Timestamp:
8/4/2010 1:09:55 AM (18 months ago)
Author:
lowjoel
Message:

Do not assume that only one configurer can handle every command line-argument. Always check for the situation where two configurers can handle the same argument; detect the error, display a message and exit.

Location:
trunk/eraser/Eraser
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/Program.cs

    r2221 r2227  
    294294where action is 
    295295  help                Show this help message. 
    296   addtask             Adds tasks to the current task list. 
     296  addtask             Adds a task to the current task list. 
    297297  querymethods        Lists all registered Erasure methods. 
    298298  importtasklist      Imports an Eraser Task list to the current user's Task 
     
    422422            foreach (string argument in arguments.PositionalArguments) 
    423423            { 
    424                 bool processed = false; 
     424                ErasureTarget selectedTarget = null; 
     425 
     426                //Iterate over every defined erasure target 
    425427                foreach (ErasureTarget target in ManagerLibrary.Instance.ErasureTargetRegistrar) 
    426                     if (target.Configurer.ProcessArgument(argument)) 
     428                { 
     429                    //See if this argument can be handled by the target's configurer 
     430                    IErasureTargetConfigurer configurer = target.Configurer; 
     431                    if (configurer.ProcessArgument(argument)) 
    427432                    { 
    428                         target.Method = method; 
    429                         task.Targets.Add(target); 
    430                         processed = true; 
    431                         break; 
     433                        //Check whether a target has been set (implicitly: check whether two 
     434                        //configurers can process the argument) 
     435                        if (selectedTarget == null) 
     436                        { 
     437                            configurer.SaveTo(target); 
     438                            selectedTarget = target; 
     439                        } 
     440                        else 
     441                        { 
     442                            //Yes, it is an ambiguity. Throw an error. 
     443                            throw new InvalidOperationException("Ambiguous argument: {0} can be " + 
     444                                "handled by more than one erasure target."); 
     445                        } 
    432446                    } 
    433  
    434                 if (!processed) 
     447                } 
     448 
     449                //Check whether a target has been made from parsing the entry. 
     450                if (selectedTarget == null) 
    435451                { 
    436452                    Console.WriteLine(S._("Unknown argument: {0}, skipped.", argument)); 
    437                     continue; 
     453                } 
     454                else 
     455                { 
     456                    selectedTarget.Method = method; 
     457                    task.Targets.Add(selectedTarget); 
    438458                } 
    439459            } 
  • trunk/eraser/Eraser/Strings.en.resx

    r2205 r2227  
    160160    <value>Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator.</value> 
    161161  </data> 
    162   <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
    163     <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
    164164  </data> 
    165165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
  • trunk/eraser/Eraser/Strings.it.resx

    r2205 r2227  
    160160    <value>(Untranslated)</value> 
    161161  </data> 
    162   <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
    163     <value>uso: Eraser &lt;action&gt; &lt;arguments&gt;\r\ndove action è\r\n  help                Mostra questo messaggio di istruzioni.\r\n  addtask             Aggiunge operazioni alla lista corrente.\r\n  querymethods        Elenca tutti i metodi di pulizia registrati.\r\n  importtasklist      Importa una lista di operazioni di pulizia nella lista corrente dell'utente\r\n                      List.\r\n\r\nparametri globali:\r\n  /quiet              Non crea una finestra di Console per visualizzare il progresso.\r\n\r\nparametri per aiuto:\r\n  eraser help\r\n\r\n  nessun parametro da impostare.\r\n\r\nparametri per addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             Il motodo di pulizia da usare.\r\n  /schedule           Segue la specifica di pianificazione. Il valore deve essere uno\r\n                      fra:\r\n      now             L'operazione viene eseguita immediatamente.\r\n      manually        L'operazione viene creata ma non eseguita.\r\n      restart         L'operazione verrà eseguita al successivo riavvio del computer.\r\n  recyclebin          Pulisce file e cartelle dal cestino\r\n  unused              Pulisce lo spazio libero del computer.\r\n    argomenti facoltativi: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     Se indicato, i file avranno i loro\r\n                      cluster tips puliti. Questo parametro vuole un valore\r\n                      booleano (true/false) come argomento; se non specificato\r\n                      si assume il valore true.\r\n  dir                 Pulisce file e cartelle nella directory\r\n    argomenti facoltativi: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     Una espressione wildcard per file e cartelle da\r\n                      escludere.\r\n      includeMask     Una espressione wildcard per file e cartelle da\r\n                      includere.\r\n                      La includeMask è applicata a monte della excludeMask.\r\n      deleteIfEmpty   Cancella la cartella alla fine della pulizia se essa è\r\n                      vuota.\r\n  file                Pulisce lo specifico file\r\n\r\nparametri per querymethods:\r\n  eraser querymethods\r\n\r\n  nessun parametro da specificare.\r\n\r\nparametri for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              Una lista di uno o più file da importare.\r\n\r\nTutti gli argomenti sono case sensitive.\r\n\r\nFile di risposte possono essere usati per linee comando veramente lunghe (generalmente, comunque,\r\nrichiedenti più di 32,000 caratteri.) I file di risposta sono usati premettendo\r\n@ al percorso del file, e passando ciò nella linea comandi. il\r\ncontenuto del file di risposta sarà sostituito nella stessa posizione nella\r\nlinea comandi.</value> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>(Untranslated)</value> 
    164164  </data> 
    165165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
  • trunk/eraser/Eraser/Strings.nl.resx

    r2205 r2227  
    160160    <value>(Untranslated)</value> 
    161161  </data> 
    162   <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
    163163    <value>(Untranslated)</value> 
    164164  </data> 
  • trunk/eraser/Eraser/Strings.pl.resx

    r2205 r2227  
    160160    <value>(Untranslated)</value> 
    161161  </data> 
    162   <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
    163163    <value>(Untranslated)</value> 
    164164  </data> 
  • trunk/eraser/Eraser/Strings.resx

    r2205 r2227  
    160160    <value>Another instance of Eraser is already running but it is running with higher privileges than this instance of Eraser. Tasks cannot be added in this manner.\n\nClose the running instance of Eraser and start it again without administrator privileges, or run the command again as an administrator.</value> 
    161161  </data> 
    162   <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
    163     <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds tasks to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
     162  <data name="usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line." xml:space="preserve"> 
     163    <value>usage: Eraser &lt;action&gt; &lt;arguments&gt;\r\nwhere action is\r\n  help                Show this help message.\r\n  addtask             Adds a task to the current task list.\r\n  querymethods        Lists all registered Erasure methods.\r\n  importtasklist      Imports an Eraser Task list to the current user's Task\r\n                      List.\r\n\r\nglobal parameters:\r\n  /quiet              Do not create a Console window to display progress.\r\n\r\nparameters for help:\r\n  eraser help\r\n\r\n  no parameters to set.\r\n\r\nparameters for addtask:\r\n  eraser addtask [/method=&lt;methodGUID&gt;] [/schedule=(now|manually|restart)] (recyclebin | unused=&lt;volume&gt; | dir=&lt;directory&gt; | file=&lt;file&gt;)[...]\r\n\r\n  /method             The Erasure method to use.\r\n  /schedule           The schedule the task will follow. The value must be one\r\n                      of:\r\n      now             The task will be queued for immediate execution.\r\n      manually        The task will be created but not queued for execution.\r\n      restart         The task will be queued for execution when the computer\r\n                      is next restarted.\r\n  recyclebin          Erases files and folders in the recycle bin\r\n  unused              Erases unused space in the volume.\r\n    optional arguments: unused=&lt;drive&gt;[,clusterTips[=(true|false)]]\r\n      clusterTips     If specified, the drive's files will have their\r\n                      cluster tips erased. This parameter accepts a Boolean\r\n                      value (true/false) as an argument; if none is specified\r\n                      true is assumed.\r\n  dir                 Erases files and folders in the directory\r\n    optional arguments: dir=&lt;directory&gt;[,-excludeMask][,+includeMask][,deleteIfEmpty]\r\n      excludeMask     A wildcard expression for files and folders to\r\n                      exclude.\r\n      includeMask     A wildcard expression for files and folders to\r\n                      include.\r\n                      The include mask is applied before the exclude mask.\r\n      deleteIfEmpty   Deletes the folder at the end of the erasure if it is\r\n                      empty.\r\n  file                Erases the specified file\r\n\r\nparameters for querymethods:\r\n  eraser querymethods\r\n\r\n  no parameters to set.\r\n\r\nparameters for importtasklist:\r\n  eraser importtasklist (file)[...]\r\n\r\n  [file]              A list of one or more files to import.\r\n\r\nAll arguments are case sensitive.\r\n\r\nResponse files can be used for very long command lines (generally, anything\r\ninvolving more than 32,000 characters.) Response files are used by prepending\r\n@ to the path to the file, and passing it into the command line. The\r\ncontents of the response files' will be substituted at the same position into\r\nthe command line.</value> 
    164164  </data> 
    165165  <data name="Eraser {0}\r\n(c) 2008-2010 The Eraser Project\r\nEraser is Open-Source Software: see http://eraser.heidi.ie/ for details.\r\n" xml:space="preserve"> 
Note: See TracChangeset for help on using the changeset viewer.