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.

76 lines
4.4 KiB

  1. #include "resource.h"
  2. #include "cmdlineres.h"
  3. #include "cmdline.rc"
  4. STRINGTABLE DISCARDABLE
  5. BEGIN
  6. IDS_MAIN_HELP_BEGIN "\nWHERE [/R dir] [/Q] [/F] [/T] pattern...\n\n"
  7. IDS_STRING1 "Description:\n"
  8. IDS_STRING2 " Displays the location of files that match the search pattern.\n"
  9. IDS_STRING3 " By default, the search is done along the current directory and\n"
  10. IDS_STRING4 " in the paths specified by the PATH environment variable.\n\n"
  11. IDS_STRING5 ""
  12. IDS_STRING6 "Parameter List:\n"
  13. IDS_STRING7 " /R Recursively searches and displays the files that match the\n"
  14. IDS_STRING8 " given pattern starting from the specified directory.\n\n"
  15. IDS_STRING9 ""
  16. IDS_STRING10 " /Q Returns only the exit code, without displaying the list\n"
  17. IDS_STRING11 " of matched files. (quite mode)\n\n"
  18. IDS_STRING12 ""
  19. IDS_STRING13 " /F Displays the matched filename in double quotes.\n\n"
  20. IDS_STRING14 ""
  21. IDS_STRING15 " /T Displays the file size, last modified date and time for all\n"
  22. IDS_STRING16 " matched files.\n\n"
  23. IDS_STRING17 ""
  24. IDS_STRING18 " pattern Specifies the search pattern for the files to match.\n"
  25. IDS_STRING19 " Wildcards * and ? can be used in the pattern. The\n"
  26. IDS_STRING20 " ""$env:pattern"" and ""path:pattern"" formats can also be\n"
  27. IDS_STRING21 " specified, where ""env"" is an environment variable and\n"
  28. IDS_STRING22 " the search is done in the specified paths of the ""env""\n"
  29. IDS_STRING23 " environment variable. These formats should not be used\n"
  30. IDS_STRING24 " with /R. The search is also done by appending the\n"
  31. IDS_STRING25 " extensions of the PATHEXT variable to the pattern.\n\n"
  32. IDS_STRING26 ""
  33. IDS_STRING27 " /? Displays this help message.\n\n"
  34. IDS_STRING28 ""
  35. IDS_STRING29 " NOTE: The tool returns an error level of 0 if the search is\n"
  36. IDS_STRING30 " successful, of 1 if the search is unsuccessful and\n"
  37. IDS_STRING31 " of 2 for failures or errors.\n\n"
  38. IDS_STRING32 "Examples:\n"
  39. IDS_STRING33 " WHERE /?\n"
  40. IDS_STRING34 " WHERE myfilename1 myfile????.*\n"
  41. IDS_STRING35 " WHERE $windir:*.* \n"
  42. IDS_STRING36 " WHERE /R c:\windows *.exe *.dll *.bat \n"
  43. IDS_STRING37 " WHERE /Q ??.??? \n"
  44. IDS_STRING38 " WHERE ""c:\windows;c:\windows\system32:*.dll""\n"
  45. IDS_STRING39 ""
  46. IDS_MAIN_HELP_END " WHERE /F /T *.dll \n"
  47. END
  48. STRINGTABLE DISCARDABLE
  49. BEGIN
  50. IDS_HELP_MESSAGE "Type ""WHERE /?"" for usage help.\n"
  51. IDS_INVALID_DIRECTORY_SPECIFIED "ERROR: Invalid directory specified.\n"
  52. IDS_RECURSIVE_WITH_DOLLAR "ERROR: ""$env:pattern"" cannot be used with /R.\n"
  53. IDS_NO_PATTERN "ERROR: Missing pattern in ""$env:pattern"".\n"
  54. IDS_NO_DATA "INFO: Could not find ""%s"".\n"
  55. IDS_NO_DATA1 "INFO: Could not find files for the given pattern(s).\n"
  56. IDS_NO_RECURSIVE "ERROR: No directory specified for recursive option.\n"
  57. IDS_ERROR_ENV_VRARIABLE "ERROR: Environment variable ""%s"" is not found.\n"
  58. IDS_INVALID_ARUGUMENTS "ERROR: Invalid argument or option - '%s'.\n"
  59. IDS_NO_PATTERN_2 "ERROR: Missing pattern in ""path:pattern"".\n"
  60. IDS_RECURSIVE_WITH_COLON "ERROR: ""path:pattern"" format cannot be used with /R.\n"
  61. IDS_INVALID_PATTERN "ERROR: Invalid pattern is specified in ""$env:pattern"".\n"
  62. IDS_INVALID_PATTERN1 "ERROR: Invalid pattern is specified in ""path:pattern"".\n"
  63. END
  64. //
  65. // Version resources
  66. //
  67. #include <ntverp.h>
  68. #define VER_FILETYPE VFT_APP
  69. #define VER_FILESUBTYPE VFT2_UNKNOWN
  70. #define VER_FILEDESCRIPTION_STR "Where - Lists location of files"
  71. #define VER_INTERNALNAME_STR "where.exe"
  72. #define VER_ORIGINALFILENAME_STR "where.exe"
  73. #include <common.ver>