Changeset 2142
- Timestamp:
- 5/16/2010 10:24:07 AM (3 years ago)
- Location:
- trunk/eraser/Eraser
- Files:
-
- 6 edited
-
Program.cs (modified) (13 diffs)
-
Strings.en.resx (modified) (1 diff)
-
Strings.it.resx (modified) (1 diff)
-
Strings.nl.resx (modified) (1 diff)
-
Strings.pl.resx (modified) (1 diff)
-
Strings.resx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser/Program.cs
r2127 r2142 178 178 Args parsedArguments = (Args)argumentParser.Item; 179 179 180 //We default to a GUI if: 181 // - The parser did not succeed. 182 // - The parser resulted in an empty arguments list 183 // - The parser's argument at index 0 is not equal to the first argument (this 184 // is when the user is passing GUI options -- command line options always 185 // start with the action, e.g. Eraser help, or Eraser addtask 186 if (!argumentParser.Success || parsedArguments.IsEmpty || 187 parsedArguments.Positional.Count == 0 || 188 parsedArguments.Positional[0] != parsedArguments.Raw[0]) 189 { 190 GUIMain(finalCommandLine); 191 } 192 else 193 { 194 return CommandMain(finalCommandLine); 180 //Load the Eraser.Manager library 181 using (ManagerLibrary library = new ManagerLibrary(new Settings())) 182 { 183 //Set our UI language 184 EraserSettings settings = EraserSettings.Get(); 185 Thread.CurrentThread.CurrentUICulture = new CultureInfo(settings.Language); 186 187 //We default to a GUI if: 188 // - The parser did not succeed. 189 // - The parser resulted in an empty arguments list 190 // - The parser's argument at index 0 is not equal to the first argument 191 // (this is when the user is passing GUI options -- command line options 192 // always start with the action, e.g. Eraser help, or Eraser addtask 193 if (!argumentParser.Success || parsedArguments.IsEmpty || 194 parsedArguments.Positional.Count == 0 || 195 parsedArguments.Positional[0] != parsedArguments.Raw[0]) 196 { 197 GUIMain(finalCommandLine); 198 } 199 else 200 { 201 return CommandMain(finalCommandLine); 202 } 195 203 } 196 204 … … 221 229 result.Run(); 222 230 if (!result.IsConnected) 223 throw new IOException( "Eraser cannot connect to the running " +224 "instance for erasures.") ;231 throw new IOException(S._("Eraser cannot connect to the running " + 232 "instance for erasures.")); 225 233 } 226 234 … … 231 239 //We can't connect to the pipe because the other instance of Eraser 232 240 //is running with higher privileges than this instance. 233 throw new UnauthorizedAccessException( "Another instance of Eraser " +241 throw new UnauthorizedAccessException(S._("Another instance of Eraser " + 234 242 "is already running but it is running with higher privileges than " + 235 243 "this instance of Eraser. Tasks cannot be added in this manner.\n\n" + 236 244 "Close the running instance of Eraser and start it again without " + 237 245 "administrator privileges, or run the command again as an " + 238 "administrator.", e) ;246 "administrator.", e)); 239 247 } 240 248 } … … 247 255 { 248 256 using (ConsoleProgram program = new ConsoleProgram(commandLine)) 249 using (ManagerLibrary library = new ManagerLibrary(new Settings()))250 257 try 251 258 { … … 284 291 private static void PrintCommandHelp() 285 292 { 286 Console.WriteLine( @"usage: Eraser <action> <arguments>293 Console.WriteLine(S._(@"usage: Eraser <action> <arguments> 287 294 where action is 288 295 help Show this help message. … … 344 351 ""@"" to the path to the file, and passing it into the command line. The 345 352 contents of the response files' will be substituted at the same position into 346 the command line.") ;353 the command line.")); 347 354 Console.Out.Flush(); 348 355 } … … 354 361 private static void CommandHelp(ConsoleArguments arguments) 355 362 { 356 Console.WriteLine( @"Eraser {0}363 Console.WriteLine(S._(@"Eraser {0} 357 364 (c) 2008-2010 The Eraser Project 358 365 Eraser is Open-Source Software: see http://eraser.heidi.ie/ for details. 359 ", Assembly.GetExecutingAssembly().GetName().Version) ;366 ", Assembly.GetExecutingAssembly().GetName().Version)); 360 367 361 368 PrintCommandHelp(); … … 370 377 //Output the header 371 378 const string methodFormat = "{0,-2} {1,-39} {2}"; 372 Console.WriteLine(methodFormat, "", " Method", "GUID");379 Console.WriteLine(methodFormat, "", "Erasure Method", "GUID"); 373 380 Console.WriteLine(new string('-', 79)); 374 381 … … 408 415 break; 409 416 default: 410 throw new ArgumentException( string.Format(CultureInfo.CurrentCulture,411 "Unknown schedule type: {0}", arguments.Schedule), "/schedule");417 throw new ArgumentException( 418 S._("Unknown schedule type: {0}", arguments.Schedule), "/schedule"); 412 419 } 413 420 … … 427 434 if (!processed) 428 435 { 429 Console.WriteLine( "Unknown argument: {0}, skipped.", argument);436 Console.WriteLine(S._("Unknown argument: {0}, skipped.", argument)); 430 437 continue; 431 438 } … … 434 441 //Check the number of tasks in the task. 435 442 if (task.Targets.Count == 0) 436 throw new ArgumentException( "Tasks must contain at least one erasure target.");443 throw new ArgumentException(S._("Tasks must contain at least one erasure target.")); 437 444 438 445 //Send the task out. … … 572 579 //Then initialise the instance and initialise the Manager library. 573 580 using (GuiProgram program = new GuiProgram(commandLine, instanceId)) 574 using (ManagerLibrary library = new ManagerLibrary(new Settings()))575 581 { 576 582 program.InitInstance += OnGUIInitInstance; … … 590 596 GuiProgram program = (GuiProgram)sender; 591 597 eraserClient = new RemoteExecutorServer(); 592 593 //Set our UI language594 EraserSettings settings = EraserSettings.Get();595 Thread.CurrentThread.CurrentUICulture = new CultureInfo(settings.Language);596 598 Application.SafeTopLevelCaptionFormat = S._("Eraser"); 597 599 -
trunk/eraser/Eraser/Strings.en.resx
r2057 r2142 154 154 <value>Processing:</value> 155 155 </data> 156 <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 157 <value>Eraser cannot connect to the running instance for erasures.</value> 158 </data> 159 <data name="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." xml:space="preserve"> 160 <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> 161 </data> 162 <data name="usage: Eraser <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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 <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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> 164 </data> 165 <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"> 166 <value>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</value> 167 </data> 168 <data name="Unknown schedule type: {0}" xml:space="preserve"> 169 <value>Unknown schedule type: {0}</value> 170 </data> 171 <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 172 <value>Unknown argument: {0}, skipped.</value> 173 </data> 174 <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 175 <value>Tasks must contain at least one erasure target.</value> 176 </data> 156 177 <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 157 178 <value>Could not load task list. All task entries have been lost. The error returned was: {0}</value> -
trunk/eraser/Eraser/Strings.it.resx
r2057 r2142 154 154 <value>Elaborazione:</value> 155 155 </data> 156 <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 157 <value>(Untranslated)</value> 158 </data> 159 <data name="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." xml:space="preserve"> 160 <value>(Untranslated)</value> 161 </data> 162 <data name="usage: Eraser <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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> 164 </data> 165 <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"> 166 <value>(Untranslated)</value> 167 </data> 168 <data name="Unknown schedule type: {0}" xml:space="preserve"> 169 <value>(Untranslated)</value> 170 </data> 171 <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 172 <value>(Untranslated)</value> 173 </data> 174 <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 175 <value>(Untranslated)</value> 176 </data> 156 177 <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 157 178 <value>Impossibile caricare la lista delle operazioni. Tutte i relativi riferimenti sono stati persi. L'errore è stato: {0}</value> -
trunk/eraser/Eraser/Strings.nl.resx
r2057 r2142 154 154 <value>(Untranslated)</value> 155 155 </data> 156 <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 157 <value>(Untranslated)</value> 158 </data> 159 <data name="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." xml:space="preserve"> 160 <value>(Untranslated)</value> 161 </data> 162 <data name="usage: Eraser <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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> 164 </data> 165 <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"> 166 <value>(Untranslated)</value> 167 </data> 168 <data name="Unknown schedule type: {0}" xml:space="preserve"> 169 <value>(Untranslated)</value> 170 </data> 171 <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 172 <value>(Untranslated)</value> 173 </data> 174 <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 175 <value>(Untranslated)</value> 176 </data> 156 177 <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 157 178 <value>(Untranslated)</value> -
trunk/eraser/Eraser/Strings.pl.resx
r2057 r2142 154 154 <value>Przetwarzanie:</value> 155 155 </data> 156 <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 157 <value>(Untranslated)</value> 158 </data> 159 <data name="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." xml:space="preserve"> 160 <value>(Untranslated)</value> 161 </data> 162 <data name="usage: Eraser <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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> 164 </data> 165 <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"> 166 <value>(Untranslated)</value> 167 </data> 168 <data name="Unknown schedule type: {0}" xml:space="preserve"> 169 <value>(Untranslated)</value> 170 </data> 171 <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 172 <value>(Untranslated)</value> 173 </data> 174 <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 175 <value>(Untranslated)</value> 176 </data> 156 177 <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 157 178 <value>Nie można było załadować listy zadań. Wszystkie wpisy zadań zostały utracone. Wystąpił błąd: {0}</value> -
trunk/eraser/Eraser/Strings.resx
r2057 r2142 154 154 <value>Processing:</value> 155 155 </data> 156 <data name="Eraser cannot connect to the running instance for erasures." xml:space="preserve"> 157 <value>Eraser cannot connect to the running instance for erasures.</value> 158 </data> 159 <data name="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." xml:space="preserve"> 160 <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> 161 </data> 162 <data name="usage: Eraser <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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 <action> <arguments>\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=<methodGUID>] [/schedule=(now|manually|restart)] (recyclebin | unused=<volume> | dir=<directory> | file=<file>)[...]\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=<drive>[,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=<directory>[,-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> 164 </data> 165 <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"> 166 <value>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</value> 167 </data> 168 <data name="Unknown schedule type: {0}" xml:space="preserve"> 169 <value>Unknown schedule type: {0}</value> 170 </data> 171 <data name="Unknown argument: {0}, skipped." xml:space="preserve"> 172 <value>Unknown argument: {0}, skipped.</value> 173 </data> 174 <data name="Tasks must contain at least one erasure target." xml:space="preserve"> 175 <value>Tasks must contain at least one erasure target.</value> 176 </data> 156 177 <data name="Could not load task list. All task entries have been lost. The error returned was: {0}" xml:space="preserve"> 157 178 <value>Could not load task list. All task entries have been lost. The error returned was: {0}</value>
Note: See TracChangeset
for help on using the changeset viewer.
