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.

74 lines
4.5 KiB

  1. #include "resource.h"
  2. #include "cmdlineres.h"
  3. #include "cmdline.rc"
  4. STRINGTABLE DISCARDABLE
  5. BEGIN
  6. IDS_MAIN_HELP_BEGIN "\nFREEDISK [/S system [/U user [/P [password]]]] [/D drive/volume] [value]\n\n"
  7. IDS_HELP_LINE2 "Description:\n"
  8. IDS_HELP_LINE3 " This tool checks whether the specified amount of free space is\n"
  9. IDS_HELP_LINE4 " available on the specified drive or not. Returns ""0"" if space is\n"
  10. IDS_HELP_LINE5 " available and ""1"" if not available. When a value is not specified\n"
  11. IDS_HELP_LINE6 " it displays the available free space. Defaults to current drive or\n"
  12. IDS_HELP_LINE7 " volume.\n\n"
  13. IDS_HELP_LINE8 ""
  14. IDS_HELP_LINE9 "Parameter List:\n"
  15. IDS_HELP_LINE10 " /S system Specifies the remote system to connect to.\n\n"
  16. IDS_HELP_LINE11 ""
  17. IDS_HELP_LINE12 " /U [domain\\]user Specifies the user context under which\n"
  18. IDS_HELP_LINE13 " the command should execute.\n\n"
  19. IDS_HELP_LINE14 ""
  20. IDS_HELP_LINE15 " /P [password] Specifies the password for the given\n"
  21. IDS_HELP_LINE16 " user context. Prompts for input if omitted.\n\n"
  22. IDS_HELP_LINE17 ""
  23. IDS_HELP_LINE18 " /D drive/volume Specifies the drive/volume on which the\n"
  24. IDS_HELP_LINE19 " availability of free space is to be known.\n"
  25. IDS_HELP_LINE20 " This option must be specified for a remote\n"
  26. IDS_HELP_LINE21 " system.\n\n"
  27. IDS_HELP_LINE22 ""
  28. IDS_HELP_LINE23 " <value> Specifies the amount of free space in bytes.\n"
  29. IDS_HELP_LINE24 " It can be specified in the units of KB, MB,\n"
  30. IDS_HELP_LINE25 " GB, TB, PB, EB, ZB and YB.\n\n"
  31. IDS_HELP_LINE26 ""
  32. IDS_HELP_LINE27 " /? Displays this help message.\n\n"
  33. IDS_HELP_LINE28 ""
  34. IDS_HELP_LINE29 "Examples:\n"
  35. IDS_HELP_LINE30 " FREEDISK /?\n"
  36. IDS_HELP_LINE31 " FREEDISK\n"
  37. IDS_HELP_LINE32 " FREEDISK 4MB \n"
  38. IDS_HELP_LINE33 " FREEDISK /D c: 2048KB\n"
  39. IDS_HELP_LINE34 " FREEDISK /D d:\\home\\myvolume\n"
  40. IDS_MAIN_HELP_END " FREEDISK /S system /U user /P password /D c: 4.5GB\n"
  41. END
  42. STRINGTABLE DISCARDABLE
  43. BEGIN
  44. IDS_INVALID_DRIVE "Invalid drive or volume specified.\n"
  45. IDS_INVALID_BYTES "Invalid value specified for free space.\n"
  46. IDS_INVALID_SYNTAX "Invalid syntax.\nType ""FREEDISK /?"" for usage.\n"
  47. IDS_USER_WITHOUT_SERVER "User name specified without specifying system name.\n"
  48. IDS_PASSWD_WITHOUT_USER "Password specified without specifying user name.\n"
  49. IDS_NUMBER_OVERFLOW "The number of bytes specified is too large.\n"
  50. IDS_LOCAL_CREDENTIALS "WARNING: User credentials are ignored for local connections.\n"
  51. IDS_ERROR_NULL_SERVER "Server name cannot be empty.\n"
  52. IDS_ERROR_NULL_DRIVE "Drive letter cannot be empty.\n"
  53. IDS_REMOTE_DRIVE_NOT_SPECIFIED "Drive name must be specified for a remote system.\n"
  54. IDS_OK "SUCCESS: The specified %s byte(s) of free space are available on ""%s"" volume.\n"
  55. IDS_OK1 "SUCCESS: The specified %s byte(s) of free space are available on current volume.\n"
  56. IDS_TOO_SMALL "INFO: The specified amount of free space is not available on ""%s"" volume.\n"
  57. IDS_TOO_SMALL1 "INFO: The specified amount of free space is not available on current volume.\n"
  58. IDS_AVAILABLE_DISK_SPACE "INFO: %s bytes free on ""%s"" volume.\n"
  59. IDS_AVAILABLE_DISK_SPACE1 "INFO: %s bytes free on current volume.\n"
  60. IDS_CANT_FIND_DISK "Can't find the drive or volume.\n"
  61. END
  62. //
  63. // Version resources
  64. //
  65. #include <ntverp.h>
  66. #define VER_FILETYPE VFT_APP
  67. #define VER_FILESUBTYPE VFT2_UNKNOWN
  68. #define VER_FILEDESCRIPTION_STR "Free Disk - Reports on the availability of free space"
  69. #define VER_INTERNALNAME_STR "freedisk.exe"
  70. #define VER_ORIGINALFILENAME_STR "freedisk.exe"
  71. #include <common.ver>