Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

  1. /*+*******************************************************************************************
  2. Project : StringCheck
  3. File : StringCheck.cs
  4. Summary : Entry point
  5. Classes / Fcns :
  6. Notes / Revisions :
  7. *******************************************************************************************+*/
  8. using System;
  9. /*
  10. Sample Command Line
  11. -d"d:\local\stringcheck" -o"D:\Local\SillyString\output.txt" -f"*.c" -s"\"*\""
  12. */
  13. /*C+C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++C+++
  14. Summary:
  15. C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C---C-C*/
  16. public class StringCheckApp
  17. {
  18. public static int Main(string[] args)
  19. {
  20. // Parse out command line parameters
  21. if ( 0 == ProgramArgs.CommandLine(args) ) goto SillyStringAppMainEnd;
  22. Console.WriteLine("\nStringCheck - Scan source files for hard coded strings.");
  23. Console.WriteLine("Command Line Options:");
  24. Console.WriteLine("Directory = {0}", ProgramArgs.Directory);
  25. Console.WriteLine("FileFilter = {0}", ProgramArgs.FileFilter);
  26. Console.WriteLine("SearchString = {0}", ProgramArgs.SearchString);
  27. Console.WriteLine("OutputFile = {0}\n", ProgramArgs.OutputFile);
  28. // Let's get to it!
  29. ds = new DirScan(ProgramArgs.Directory, ProgramArgs.FileFilter, ProgramArgs.SearchString, ProgramArgs.OutputFile);
  30. ds.BeginScan();
  31. // Cleanup & Shutdown
  32. SillyStringAppMainEnd:
  33. //Console.WriteLine("Press ENTER to exit.");
  34. //Console.ReadLine();
  35. return 0;
  36. } // Main
  37. /*---------------------------------------------------------
  38. Member vars
  39. ----------------------------------------------------------*/
  40. static DirScan ds;
  41. } // StringCheckApp