Source code of Windows XP (NT5)
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.

600 lines
37 KiB

  1. #include "resource.h"
  2. #include "windows.h"
  3. #include "cmdlineres.h"
  4. #include "cmdline.rc"
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // String Table
  8. //
  9. STRINGTABLE DISCARDABLE
  10. BEGIN
  11. IDS_ERROR_PARSEPARAM "ERROR: Invalid syntax.\nType ""SCHTASKS /?"" for usage.\n"
  12. IDS_MODIFIER_NA "ERROR: /MO option is not applicable for this type of scheduled item.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  13. IDS_INVALID_MODIFIER "ERROR: Invalid value for /MO [modifier] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  14. IDS_INVALID_VALUE_FOR_DAY "ERROR: Invalid value for /D [day] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  15. IDS_INVALID_VALUE_FOR_MON "ERROR: Invalid value for /M [months] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  16. IDS_MON_NA "ERROR: /M [months] option is not applicable for this specified type of scheduled item.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  17. IDS_INVALIDFORMAT_STARTDATE "ERROR: Invalid Start Date (Date should be in ""%1"" format).\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  18. IDS_NO_STARTDATE "ERROR: No Value specified for /SD [startdate] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  19. IDS_INVALIDFORMAT_ENDDATE "ERROR: Invalid End Date (Date should be in ""%1"" format).\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  20. IDS_ENDDATE_NA "ERROR: /ED [enddate] option is not applicable.\n\nType ""SCHTASKS /CREATE /?"" for usage."
  21. IDS_INVALIDFORMAT_STARTTIME "ERROR: Invalid starttime value (Time should be in hh:mm:ss format).\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  22. IDS_NO_STARTTIME "ERROR: No value specified for /ST [starttime] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  23. IDS_STARTTIME_NA "ERROR: /ST [starttime] option is not applicable.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  24. IDS_NO_IDLETIME "ERROR: Idletime [/I] value must be specified.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  25. IDS_INVALIDORNO_IDLETIME "ERROR: Invalid idletime [/I] value (Valid range for idletime is 1-999).\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  26. IDS_NTAUTH_SYSTEM_ERROR "ERROR: Unable to change the Run as User name to ""NT AUTHORITY\SYSTEM"".\n"
  27. IDS_INVALID_NET_ADDRESS "ERROR: The network address is invalid.\n"
  28. IDS_FAILED_TOGET_USER "ERROR: Failed to get the user name.\n"
  29. IDS_INVALID_ARG "ERROR: The supplied task name argument is not valid.\n"
  30. IDS_NO_MEMORY "ERROR: Not enough memory is available.\n"
  31. IDS_INVALID_TASK "ERROR: Invalid task name.\n"
  32. IDS_INVALID_USERNAME "ERROR: User name cannot be NULL.\n"
  33. IDS_TASKNAME_NOTEXIST "ERROR: The specified task name ""%s"" does not exist in the system.\n"
  34. IDS_DELETE_SYNERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /DELETE /?"" for usage.\n"
  35. IDS_CHANGE_SYNERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /CHANGE /?"" for usage.\n"
  36. IDS_RUN_SYNERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /RUN /?"" for usage.\n"
  37. IDS_END_SYNERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /END /?"" for usage.\n"
  38. IDS_CREATE_USAGE "ERROR: Invalid syntax.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  39. IDS_INVALID_SCHEDTYPE "ERROR: Invalid Schedule Type specified.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  40. IDS_USERNAME_BUT_NOMACHINE "ERROR: Invalid syntax. Cannot specify user name without specifying system name.\nType ""SCHTASKS /?"" for usage.\n"
  41. IDS_CPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax Cannot specify password without specifying the user name.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  42. IDS_QPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax. Cannot specify password without specifying the user name.\nType ""SCHTASKS /QUERY /?"" for usage.\n"
  43. IDS_DPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax. Cannot specify password without specifying the user name.\nType ""SCHTASKS /DELETE /?"" for usage.\n"
  44. IDS_RPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax. Cannot specify password without specifying the user name.\nType ""SCHTASKS /RUN /?"" for usage.\n"
  45. IDS_EPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax. Cannot specify password without specifying the user name.\nType ""SCHTASKS /END /?"" for usage.\n"
  46. IDS_CHPASSWORD_BUT_NOUSERNAME "ERROR: Invalid syntax. Cannot specify password without specifying the user name.\nType ""SCHTASKS /CHANGE /?"" for usage.\n"
  47. IDS_NO_CHANGE_OPTIONS "ERROR: Either /RU or /RP or /TR value is missing (Atleast one parameter is required).\nType ""SCHTASKS /CHANGE /?"" for usage.\n"
  48. IDS_NO_PASSWORD "ERROR: Password cannot be NULL.\n"
  49. IDS_RUN_ERROR "ERROR: Unable to run the scheduled task ""%1"".\n"
  50. IDS_FAILED_TOSET_PARAMS "ERROR: Failed to set parameters.\n"
  51. IDS_FAILED_TOGET_RUNASUSER "ERROR: Failed to get Run As User.\n"
  52. IDS_DAYS_NA "ERROR: /D [day] option is not applicable for the specified type of scheduled item.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  53. IDS_CREATEFAIL_INVALIDARGS "ERROR: The scheduled task ""%1"" could not be created. \n"
  54. IDS_CREATE_TASK_EXISTS "ERROR: The specified task name already exists in the system.\n"
  55. IDS_INVALIDFORMAT_DATE "ERROR: Invalid date format specified.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  56. IDS_NOTAPPLICABLE_SDATE "ERROR: Start date not applicable.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  57. IDS_INVALIDIDLETIME_OPTION "ERROR: Invalid idletime option.\nType ""SCHTASKS /CREATE /?"" for usage."
  58. IDS_INVALID_TASKLENGTH "ERROR: The scheduled task name cannot be null or more than 239 characters.\n"
  59. IDS_INVALID_JOBNAME "ERROR: Invalid taskname specified.\n"
  60. IDS_LOGGED_USER_ERR "ERROR: Could not get the current logged on user name.\n"
  61. IDS_NOHEADER_NA "ERROR: The /NH [no header] switch cannot be used with the LIST format.\nType ""SCHTASKS /QUERY /?"" for usage.\n"
  62. IDS_WRONG_INPUT_DELETE "ERROR: Invalid input.\nType ""SCHTASKS /DELETE /?"" for usage.\n"
  63. IDS_IDLETIME_NA "ERROR: /I [idletime] option is not applicable for the specified type of scheduled item.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  64. IDS_NO_DAY_VALUE "ERROR: /D [day] value should be specifed.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  65. IDS_NO_MONTH_VALUE "ERROR: /M [month] value should be specifed.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  66. IDS_INVALID_TASKRUN "ERROR: The task to run [/TR] cannot be null or more than 262 characters.\n"
  67. IDS_NO_SERVER "ERROR: Invalid syntax. System name [ /S ] cannot be empty.\n"
  68. IDS_INVALID_SERVER "ERROR: Invalid system name specified.\n"
  69. IDS_DELETEOPTION_ERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /DELETE /?"" for usage.\n"
  70. IDS_CREATEFILE_USAGE "ERROR: This feature is currently not implemented.\n"
  71. IDS_RES_ERROR "ERROR: Invalid syntax.\nType ""SCHTASKS /?"" for usage.\n"
  72. IDS_QUERY_USAGE "ERROR: Invalid syntax.\nType ""SCHTASKS /QUERY /?"" for usage.\n"
  73. IDS_CREATE_READERROR "ERROR: Failed to retrieve task properties.\n"
  74. IDS_ENDATE_INVALID "ERROR: End date must be same or later than the start date or current date.\n"
  75. IDS_CREATE_ERR "ERROR: Invalid syntax.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  76. IDS_QUERY_READ """ERROR"""
  77. IDS_LOGTYPE_ERROR "ERROR: "
  78. IDS_MODIFIER_INVALID "ERROR: Invalid modifier value.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  79. IDS_QUERY_FORMAT_ERR "ERROR: Improper display format type specified.\nType ""SCHTASKS /QUERY /?"" for usage.\n"
  80. IDS_IDLETIME_INVALID "ERROR: Invalid value given for /I [idletime] option.\nType ""SCHTASKS /CREATE /?"" for usage.\n"
  81. IDS_INVALID_TASKNAME1 "ERROR: The creation of the scheduled task failed.\n"
  82. IDS_OPEN_FAILED "\nERROR: Failed to open ""StdIn.txt"" file.\n"
  83. IDS_READ_FAILED "\nERROR: Failed to read ""StdIn.txt"" file.\n"
  84. IDS_INVALID_PASSWORD "ERROR: Password cannot be more than 64 characters.\n"
  85. IDS_INVALID_UNAME "ERROR: Username cannot be more than 64 characters.\n"
  86. END
  87. STRINGTABLE DISCARDABLE
  88. BEGIN
  89. IDS_RUNNING_ALREADY "INFO: scheduled task ""%1"" has already been running.\n"
  90. IDS_NTAUTH_SYSTEM_INFO "INFO: The Schedule Task ""%1"" will be created under user name (""NT AUTHORITY\SYSTEM"").\n"
  91. IDS_NTAUTH_SYSTEM_CHANGE_INFO "INFO: The run as user name for the scheduled task ""%1"" will be changed to ""NT AUTHORITY\SYSTEM"".\n"
  92. IDS_TASKNAME_NOTASKS "INFO: There are no scheduled tasks present in the system.\n"
  93. IDS_INVALID_TASKNAME2 "Reason: The Task Name may not contain the characters: <, >, :, /, \\,|. \n"
  94. END
  95. STRINGTABLE DISCARDABLE
  96. BEGIN
  97. IDS_INVALID_USER "WARNING: The Scheduled task ""%1"" has been created, but may not run because the account information could not be set.\n"
  98. IDS_SCHEDULER_NOT_RUNNING "WARNING: The Scheduled task ""%1"" has been created, but may not run because the task scheduler service is not running.\n"
  99. IDS_RPC_SERVER_NOT_AVAIL "WARNING: The Scheduled task ""%1"" has been created, but may not run because the task scheduler service is not running on ""%2"" system.\n"
  100. IDS_PASSWORD_NOEFFECT "WARNING: Password will be ignored for ""NT AUTHORITY\SYSTEM"" user.\n"
  101. IDS_WARN_DELETEALL "WARNING: Are you sure you want to remove all the tasks (Y/N) ? "
  102. IDS_WARN_DELETE "WARNING: Are you sure you want to remove the task ""%1"" (Y/N )? "
  103. IDS_WARN_EMPTY_PASSWORD "WARNING: When the run as password is empty, the scheduled task may not run because of the security policy\n"
  104. END
  105. STRINGTABLE DISCARDABLE
  106. BEGIN
  107. IDS_SUCCESS_DELETED "SUCCESS: The scheduled task ""%1"" was successfully deleted.\n"
  108. IDS_CREATE_SUCCESSFUL "SUCCESS: The scheduled task ""%1"" has successfully been created.\n"
  109. IDS_CHANGE_SUCCESSFUL "SUCCESS: The parameters of scheduled task ""%1"" have been changed.\n"
  110. IDS_RUN_SUCCESSFUL "SUCCESS: Attempted to run the scheduled task ""%1"".\n"
  111. IDS_END_SUCCESSFUL "SUCCESS: The scheduled task ""%1"" has been terminated successfully.\n"
  112. END
  113. STRINGTABLE DISCARDABLE
  114. BEGIN
  115. IDS_STATUS_UNKNOWN "Unknown"
  116. IDS_STATUS_NOTSCHED "Missed"
  117. IDS_TASK_PROPERTY_UNKNOWN "Unknown"
  118. IDS_TASK_PROPERTY_DISABLED "Disabled"
  119. IDS_TASK_PROPERTY_NONE "None"
  120. IDS_TASK_PROPERTY_ENABLED "Enabled"
  121. IDS_USER_UNKNOWN "Could not be retrieved from the task scheduler database"
  122. IDS_ACCNAME_ERR "Ensure the account name specified is valid."
  123. IDS_MINUTES "Minutes"
  124. IDS_MMDDYY_FORMAT "mm/dd/yyyy"
  125. IDS_DDMMYY_FORMAT "dd/mm/yyyy"
  126. IDS_YYMMDD_FORMAT "yyyy/mm/dd"
  127. IDS_MMDDYY_VALUE "10/20/2001"
  128. IDS_DDMMYY_VALUE "15/09/2001"
  129. IDS_YYMMDD_VALUE "2001/12/30"
  130. IDS_TASK_IDLE "At idle time"
  131. IDS_TASK_SYSSTART "At system start up"
  132. IDS_TASK_LOGON "At logon time"
  133. IDS_TASK_NEVER "Never"
  134. IDS_STATUS_RUNNING "Running"
  135. IDS_STATUS_READY ""
  136. IDS_STATUS_NOTYET ""
  137. IDS_STATUS_COULDNOTSTART "Could not start"
  138. IDS_STATUS_SCHEDULED "Scheduled"
  139. IDS_PROMPT_USERNAME "Please enter the run as user name: "
  140. IDS_PROMPT_PASSWD "Please enter the run as password for %1: "
  141. IDS_PROMPT_CHGPASSWD "Please enter the run as password for ""%1"": "
  142. IDS_TASK_INFO "The task will be created under current logged-on user name (""%1"").\n"
  143. IDS_USER_INFO "The task will be created under the user name (""%1"").\n"
  144. IDS_SCHEDTYPE_MINUTE "MINUTE"
  145. IDS_SCHEDTYPE_HOUR "HOURLY"
  146. IDS_SCHEDTYPE_DAILY "DAILY"
  147. IDS_SCHEDTYPE_WEEK "WEEKLY"
  148. IDS_SCHEDTYPE_MONTHLY "MONTHLY"
  149. IDS_SCHEDTYPE_ONCE "ONCE"
  150. IDS_SCHEDTYPE_STARTUP "ONSTART"
  151. IDS_SCHEDTYPE_LOGON "ONLOGON"
  152. IDS_SCHEDTYPE_IDLE "ONIDLE"
  153. IDS_QUERY_NOENDDATE "N/A"
  154. IDS_TASK_PROPERTY_NA "N/A"
  155. IDS_TASK_PROPERTY_ONCE "One Time Only"
  156. IDS_TASK_PROPERTY_NEVER "Never"
  157. IDS_TASK_PROPERTY_DAILY "Daily "
  158. IDS_TASK_PROPERTY_HOURLY "Hourly "
  159. IDS_TASK_PROPERTY_MINUTE "Minute "
  160. IDS_TASK_HOURLY "hour(s)"
  161. IDS_TASK_MINUTE "minute(s)"
  162. IDS_TASK_PROPERTY_WEEKLY "Weekly"
  163. IDS_TASK_PROPERTY_MONTHLY "Monthly"
  164. IDS_TASK_PROPERTY_SPMONTHS "Specific Days in a Month(s),Week(s),Day(s)"
  165. IDS_TASK_PROPERTY_UNDEF "Undefined"
  166. IDS_TASK_SUNDAY "SUNDAY"
  167. IDS_TASK_MONDAY "MONDAY"
  168. IDS_TASK_TUESDAY "TUESDAY"
  169. IDS_TASK_WEDNESDAY "WEDNESDAY"
  170. IDS_TASK_THURSDAY "THURSDAY"
  171. IDS_TASK_FRIDAY "FRIDAY"
  172. IDS_TASK_SATURDAY "SATURDAY"
  173. IDS_TASK_JANUARY "JAN"
  174. IDS_TASK_FEBRUARY "FEB"
  175. IDS_TASK_MARCH "MAR"
  176. IDS_TASK_APRIL "APR"
  177. IDS_TASK_MAY "MAY"
  178. IDS_TASK_JUNE "JUN"
  179. IDS_TASK_JULY "JUL"
  180. IDS_TASK_AUGUST "AUG"
  181. IDS_TASK_SEPTEMBER "SEP"
  182. IDS_TASK_OCTOBER "OCT"
  183. IDS_TASK_NOVEMBER "NOV"
  184. IDS_TASK_DECEMBER "DEC"
  185. IDS_TASK_FIRSTWEEK "First"
  186. IDS_TASK_SECONDWEEK "Second"
  187. IDS_TASK_THIRDWEEK "Third"
  188. IDS_TASK_FOURTHWEEK "Fourth"
  189. IDS_TASK_LASTWEEK "Last"
  190. IDS_QUERY_FORMAT_TABLE "TABLE"
  191. IDS_QUERY_FORMAT_LIST "LIST"
  192. IDS_QUERY_FORMAT_CSV "CSV"
  193. IDS_MONTH_MODIFIER_JAN "JAN"
  194. IDS_MONTH_MODIFIER_FEB "FEB"
  195. IDS_MONTH_MODIFIER_MAR "MAR"
  196. IDS_MONTH_MODIFIER_APR "APR"
  197. IDS_MONTH_MODIFIER_MAY "MAY"
  198. IDS_MONTH_MODIFIER_JUN "JUN"
  199. IDS_MONTH_MODIFIER_JUL "JUL"
  200. IDS_MONTH_MODIFIER_AUG "AUG"
  201. IDS_MONTH_MODIFIER_SEP "SEP"
  202. IDS_MONTH_MODIFIER_OCT "OCT"
  203. IDS_MONTH_MODIFIER_NOV "NOV"
  204. IDS_MONTH_MODIFIER_DEC "DEC"
  205. IDS_DAY_MODIFIER_SUN "SUN"
  206. IDS_DAY_MODIFIER_MON "MON"
  207. IDS_DAY_MODIFIER_TUE "TUE"
  208. IDS_DAY_MODIFIER_WED "WED"
  209. IDS_DAY_MODIFIER_THU "THU"
  210. IDS_DAY_MODIFIER_FRI "FRI"
  211. IDS_DAY_MODIFIER_SAT "SAT"
  212. IDS_DAY_MODIFIER_LASTDAY "LASTDAY"
  213. IDS_RPTTIME_PROPERTY_MINUTES "%1 Minute(s)"
  214. IDS_RPTTIME_PROPERTY_HOURS "%1 Hour(s)"
  215. IDS_RPTDURATION_PROPERTY "%1 Hour(s): %2 Minute(s)"
  216. IDS_DAILY_TYPE "Everyday"
  217. IDS_EVERYDAY "Every %1 Day(s)"
  218. IDS_WEEK_DISPLAY_STRING "Every %1 Week(s) on %2"
  219. IDS_MONTHLY_DISPLAY_STRING "On day %1 of month(s) %2"
  220. IDS_QUERY_NA "N/A"
  221. IDS_ERROR_STRING "ERROR: "
  222. IDS_WARNING_STRING "WARNING: "
  223. IDS_NOTSCHEDULED_TASK "Task not scheduled"
  224. END
  225. STRINGTABLE DISCARDABLE
  226. BEGIN
  227. IDS_COL_HOSTNAME "HostName"
  228. IDS_COL_TASKNAME "TaskName"
  229. IDS_COL_NEXTRUNTIME "Next Run Time"
  230. IDS_COL_LASTRUNTIME "Status"
  231. IDS_COL_STATUS "Last Run Time"
  232. IDS_COL_LASTRESULT "Last Result"
  233. IDS_COL_CREATOR "Creator"
  234. IDS_COL_SCHEDULE "Schedule"
  235. IDS_COL_APPNAME "Task To Run"
  236. IDS_COL_WORKDIRECTORY "Start In"
  237. IDS_COL_COMMENT "Comment"
  238. IDS_COL_TASKSTATE "Scheduled Task State"
  239. IDS_COL_TASKTYPE "Scheduled Type"
  240. IDS_COL_STARTTIME "Start Time"
  241. IDS_COL_STARTDATE "Start Date"
  242. IDS_COL_ENDDATE "End Date"
  243. IDS_COL_DAYS "Days"
  244. IDS_COL_MONTHS "Months"
  245. IDS_COL_RUNASUSER "Run As User"
  246. IDS_COL_DELTASK "Delete Task If Not Rescheduled"
  247. IDS_COL_STOPTASK "Stop Task If Runs X Hours and X Mins"
  248. IDS_COL_REPEAT_EVERY "Repeat: Every"
  249. IDS_COL_REPEAT_UNTILTIME "Repeat: Until: Time"
  250. IDS_COL_REPEAT_DURATION "Repeat: Until: Duration"
  251. IDS_COL_REPEAT_RUNNING "Repeat: Stop If Still Running"
  252. IDS_COL_IDLE "Idle Time"
  253. IDS_COL_POWER "Power Management"
  254. IDS_COL_IDLE_ONLYSTART "Only Start If Idle for %1 minutes"
  255. IDS_COL_IDLE_NOTIDLE "If Not Idle Retry For %1 minutes"
  256. IDS_COL_IDLE_STOPTASK "Stop the task if Idle State end"
  257. IDS_COL_POWER_NOSTART "No Start On Batteries"
  258. IDS_COL_POWER_STOP "Stop On Battery Mode"
  259. IDS_WIDTH_HOSTNAME "15"
  260. IDS_WIDTH_TASKNAME "36"
  261. IDS_WIDTH_NEXTRUNTIME "24"
  262. IDS_WIDTH_LASTRUNTIME "24"
  263. IDS_WIDTH_STATUS "15"
  264. IDS_WIDTH_LASTRESULT "14"
  265. IDS_WIDTH_CREATOR "16"
  266. IDS_WIDTH_SCHEDULE "80"
  267. IDS_WIDTH_APPNAME "48"
  268. IDS_WIDTH_WORKDIRECTORY "38"
  269. IDS_WIDTH_COMMENT "48"
  270. IDS_WIDTH_TASKSTATE "28"
  271. IDS_WIDTH_TASKTYPE "38"
  272. IDS_WIDTH_TASKMODIFIER "48"
  273. IDS_WIDTH_TASKSTIME "18"
  274. IDS_WIDTH_TASKSDATE "18"
  275. IDS_WIDTH_TASKEDATE "18"
  276. IDS_WIDTH_TASKDAYS "43"
  277. IDS_WIDTH_TASKMONTHS "43"
  278. IDS_WIDTH_TASKRUNASUSER "40"
  279. IDS_WIDTH_TASKDELETE "35"
  280. IDS_WIDTH_TASK_RPTEVERY "17"
  281. IDS_WIDTH_TASK_UNTILRPTTIME "20"
  282. IDS_WIDTH_TASK_RPTDURATION "30"
  283. IDS_WIDTH_TASK_RPTRUNNING "35"
  284. IDS_WIDTH_TASKIDLESTART "45"
  285. IDS_WIDTH_TASKIDLEONLYSTART "42"
  286. IDS_WIDTH_TASKNOTIDLE "40"
  287. IDS_WIDTH_TASKIDLESTOP "40"
  288. IDS_WIDTH_TASKPOWERNOSTART "33"
  289. IDS_WIDTH_TASKPOWERSTOP "36"
  290. IDS_WIDTH_TASKSTOP "40"
  291. IDS_WIDTH_TASKIDLE "40"
  292. IDS_WIDTH_TASKPOWERMGMT "45"
  293. IDS_HOSTNAME_COL_NUMBER "0"
  294. IDS_TASKNAME_COL_NUMBER "1"
  295. IDS_NEXTRUNTIME_COL_NUMBER "2"
  296. IDS_LASTRUNTIME_COL_NUMBER "4"
  297. IDS_STATUS_COL_NUMBER "3"
  298. IDS_LASTRESULT_COL_NUMBER "5"
  299. IDS_CREATOR_COL_NUMBER "6"
  300. IDS_SCHEDULE_COL_NUMBER "7"
  301. IDS_TASKTORUN_COL_NUMBER "8"
  302. IDS_STARTIN_COL_NUMBER "9"
  303. IDS_COMMENT_COL_NUMBER "10"
  304. IDS_TASKSTATE_COL_NUMBER "11"
  305. IDS_TASKTYPE_COL_NUMBER "12"
  306. IDS_STARTTIME_COL_NUMBER "13"
  307. IDS_STARTDATE_COL_NUMBER "14"
  308. IDS_ENDDATE_COL_NUMBER "15"
  309. IDS_DAYS_COL_NUMBER "16"
  310. IDS_MONTHS_COL_NUMBER "17"
  311. IDS_RUNASUSER_COL_NUMBER "18"
  312. IDS_DELETE_IFNOTRESCHEDULED_COL_NUMBER "19"
  313. IDS_STOPTASK_COL_NUMBER "20"
  314. IDS_REPEAT_EVERY_COL_NUMBER "21"
  315. IDS_REPEAT_UNTILTIME_COL_NUMBER "22"
  316. IDS_REPEAT_DURATION_COL_NUMBER "23"
  317. IDS_REPEAT_STOP_COL_NUMBER "24"
  318. IDS_IDLE_COL_NUMBER "25"
  319. IDS_POWER_MGMT_COL_NUMBER "26"
  320. END
  321. STRINGTABLE DISCARDABLE
  322. BEGIN
  323. IDS_CREATE_HLP1 "\nSCHTASKS /Create [/S system [/U username [/P password]]]\n"
  324. IDS_CREATE_HLP2 " [/RU username [/RP password]] /SC schedule [/MO modifier] [/D day]\n"
  325. IDS_CREATE_HLP3 " [/I idletime] /TN taskname /TR taskrun [/ST starttime] [/M months]\n"
  326. IDS_CREATE_HLP4 " [/SD startdate] [/ED enddate]\n\n"
  327. IDS_CREATE_HLP5 "Description:\n "
  328. IDS_CREATE_HLP6 " Enables an administrator to create scheduled tasks on a local or\n "
  329. IDS_CREATE_HLP7 " remote systems. \n\n"
  330. IDS_CREATE_HLP8 "Parameter List:\n"
  331. IDS_CREATE_HLP9 " /S system Specifies the remote system to\n"
  332. IDS_CREATE_HLP10 " connect to. If omitted the system\n"
  333. IDS_CREATE_HLP11 " parameter defaults to the local\n"
  334. IDS_CREATE_HLP12 " system.\n\n"
  335. IDS_CREATE_HLP13 " /U username Specifies the user context under\n"
  336. IDS_CREATE_HLP14 " which the command should execute.\n\n"
  337. IDS_CREATE_HLP15 " /P password Specifies the password for the given\n"
  338. IDS_CREATE_HLP16 " user context.\n\n"
  339. IDS_CREATE_HLP17 " /RU username Specifies the user account (user \n"
  340. IDS_CREATE_HLP18 " context) under which the task runs.\n"
  341. IDS_CREATE_HLP19 " For the system account, valid values \n"
  342. IDS_CREATE_HLP20 " are """", ""NT AUTHORITY\SYSTEM"" or\n"
  343. IDS_CREATE_HLP21 " ""SYSTEM"".\n\n"
  344. IDS_CREATE_HLP22 " /RP password Specifies the password for the user.\n"
  345. IDS_CREATE_HLP23 " To prompt for the password, the value\n"
  346. IDS_CREATE_HLP24 " must be either ""*"" or none.\n"
  347. IDS_CREATE_HLP25 " Password will not effect for the\n"
  348. IDS_CREATE_HLP26 " system account.\n\n"
  349. IDS_CREATE_HLP27 " /SC schedule Specifies the schedule frequency.\n"
  350. IDS_CREATE_HLP28 ""
  351. IDS_CREATE_HLP29 " Valid schedule types: MINUTE, HOURLY,\n"
  352. IDS_CREATE_HLP30 " DAILY, WEEKLY, MONTHLY, ONCE,\n"
  353. IDS_CREATE_HLP31 " ONSTART, ONLOGON, ONIDLE.\n\n"
  354. IDS_CREATE_HLP32 ""
  355. IDS_CREATE_HLP33 " /MO modifier Refines the schedule type to allow \n"
  356. IDS_CREATE_HLP34 " finer control over schedule\n"
  357. IDS_CREATE_HLP35 " recurrence. Valid values are listed \n"
  358. IDS_CREATE_HLP36 " in the ""Modifiers"" section below.\n\n"
  359. IDS_CREATE_HLP37 " /D days Specifies the day of the week to run\n"
  360. IDS_CREATE_HLP38 " the task. Valid values: MON, TUE,\n"
  361. IDS_CREATE_HLP39 " WED, THU, FRI, SAT, SUN and for\n"
  362. IDS_CREATE_HLP40 " MONTHLY schedules 1 - 31 (days of the\n"
  363. IDS_CREATE_HLP41 " month).\n\n"
  364. IDS_CREATE_HLP42 " /M months Specifies month(s) of the year.\n"
  365. IDS_CREATE_HLP43 " Defaults to the first day of the\n"
  366. IDS_CREATE_HLP44 " month. Valid values: JAN, FEB, MAR,\n"
  367. IDS_CREATE_HLP45 " APR, MAY, JUN, JUL, AUG, SEP, OCT,\n"
  368. IDS_CREATE_HLP46 " NOV, DEC.\n\n"
  369. IDS_CREATE_HLP47 " /I idletime Specifies the amount of idle time to \n"
  370. IDS_CREATE_HLP48 " wait before running a scheduled \n"
  371. IDS_CREATE_HLP49 " ONIDLE task.\n"
  372. IDS_CREATE_HLP50 " Valid range: 1 - 999 minutes.\n\n"
  373. IDS_CREATE_HLP51 " /TN taskname Specifies a name which uniquely\n"
  374. IDS_CREATE_HLP52 " identifies this scheduled task.\n\n"
  375. IDS_CREATE_HLP53 " /TR taskrun Specifies the path and file name of\n"
  376. IDS_CREATE_HLP54 " the program to be run by this\n"
  377. IDS_CREATE_HLP55 " scheduled task.\n"
  378. IDS_CREATE_HLP56 " Example: C:\\windows\\system32\\calc.exe\n\n"
  379. IDS_CREATE_HLP57 " /ST starttime Specifies the time to run the task.\n"
  380. IDS_CREATE_HLP58 " The time format is HH:MM:SS (24 hour\n"
  381. IDS_CREATE_HLP59 " time) for example, 14:30:00 for \n"
  382. IDS_CREATE_HLP60 " 2:30 PM.\n\n"
  383. IDS_CREATE_HLP61 " /SD startdate Specifies the first date on which the\n"
  384. IDS_CREATE_HLP62 " task runs. The format is \n"
  385. IDS_CREATE_HLP63 " ""%1"".\n\n"
  386. IDS_CREATE_HLP64 " /ED enddate Specifies the last date when the task\n"
  387. IDS_CREATE_HLP65 " should run. The format is\n"
  388. IDS_CREATE_HLP66 " ""%1"".\n\n"
  389. IDS_CREATE_HLP67 " /? Displays this help/usage.\n\n"
  390. IDS_CREATE_HLP68 ""
  391. IDS_CREATE_HLP69 "Modifiers: Valid values for the /MO switch per schedule type:\n"
  392. IDS_CREATE_HLP70 ""
  393. IDS_CREATE_HLP71 " MINUTE: 1 - 1439 minutes.\n"
  394. IDS_CREATE_HLP72 " HOURLY: 1 - 23 hours.\n"
  395. IDS_CREATE_HLP73 " DAILY: 1 - 365 days.\n"
  396. IDS_CREATE_HLP74 " WEEKLY: weeks 1 - 52.\n"
  397. IDS_CREATE_HLP75 " ONCE: No modifiers.\n"
  398. IDS_CREATE_HLP76 " ONSTART: No modifiers.\n"
  399. IDS_CREATE_HLP77 " ONLOGON: No modifiers.\n"
  400. IDS_CREATE_HLP78 " ONIDLE: No modifiers.\n"
  401. IDS_CREATE_HLP79 " MONTHLY: 1 - 12, or \n"
  402. IDS_CREATE_HLP80 " FIRST, SECOND, THIRD, FOURTH, LAST, LASTDAY.\n\n"
  403. IDS_CREATE_HLP81 "Examples:\n"
  404. IDS_CREATE_HLP82 ""
  405. IDS_CREATE_HLP83 " SCHTASKS /Create /S system /U user /P password /RU runasuser \n"
  406. IDS_CREATE_HLP84 " /RP runaspassword /SC HOURLY /TN rtest1 /TR notepad \n"
  407. IDS_CREATE_HLP85 " SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE\n"
  408. IDS_CREATE_HLP86 " /MO 5 /TN rtest2 /TR calc.exe /ST 12:00:00 \n"
  409. IDS_CREATE_HLP87 " /SD %1 /ED %1 /RU runasuser /RP \n"
  410. IDS_CREATE_HLP88 " SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN game \n"
  411. IDS_CREATE_HLP89 " /TR c:\\windows\\system32\\freecell\n"
  412. IDS_CREATE_HLP90 " SCHTASKS /Create /S system /U user /P password /RU runasuser\n"
  413. IDS_CREATE_HLP91 " /RP runaspassword /SC WEEKLY /TN test1 /TR notepad.exe\n"
  414. IDS_CREATE_HLP92 " SCHTASKS /Create /S system /U domain\user /P password /SC MINUTE\n"
  415. IDS_CREATE_HLP93 " /MO 5 /TN test2 /TR c:\\windows\\system32\\notepad.exe \n"
  416. IDS_CREATE_HLP94 " /ST 18:30:00 /RU runasuser /RP *\n"
  417. IDS_CREATE_HLP95 " SCHTASKS /Create /SC MONTHLY /MO first /D SUN /TN cell \n"
  418. IDS_CREATE_HLP96 " /TR c:\\windows\\system32\\freecell /RU runasuser\n"
  419. END
  420. STRINGTABLE DISCARDABLE
  421. BEGIN
  422. IDS_MAINHLP1 "\nSCHTASKS /parameter [arguments] \n\n"
  423. IDS_MAINHLP2 "Description:\n"
  424. IDS_MAINHLP3 " Enables an administrator to create, delete, query, change, run and\n"
  425. IDS_MAINHLP4 " end scheduled tasks on a local or remote system. Replaces AT.exe.\n\n"
  426. IDS_MAINHLP5 "Parameter List:\n"
  427. IDS_MAINHLP6 " /Create Creates a new scheduled task.\n\n"
  428. IDS_MAINHLP7 " /Delete Deletes the scheduled task(s).\n\n"
  429. IDS_MAINHLP8 " /Query Displays all scheduled tasks.\n\n"
  430. IDS_MAINHLP9 " /Change Changes the properties of scheduled task.\n\n"
  431. IDS_MAINHLP10 " /Run Runs the scheduled task immediately.\n\n"
  432. IDS_MAINHLP11 " /End Stops the currently running scheduled task.\n\n"
  433. IDS_MAINHLP12 " /? Displays this help/usage.\n\n"
  434. IDS_MAINHLP13 "Examples:\n"
  435. IDS_MAINHLP14 " SCHTASKS \n"
  436. IDS_MAINHLP15 " SCHTASKS /?\n"
  437. IDS_MAINHLP16 " SCHTASKS /Run /?\n"
  438. IDS_MAINHLP17 " SCHTASKS /End /?\n"
  439. IDS_MAINHLP18 " SCHTASKS /Create /?\n"
  440. IDS_MAINHLP19 " SCHTASKS /Delete /?\n"
  441. IDS_MAINHLP20 " SCHTASKS /Query /?\n"
  442. IDS_MAINHLP21 " SCHTASKS /Change /?\n"
  443. END
  444. STRINGTABLE DISCARDABLE
  445. BEGIN
  446. IDS_QUERY_HLP1 "\nSCHTASKS /Query [/S system [/U username [/P password]]] [/FO format]\n"
  447. IDS_QUERY_HLP2 " [/NH] [/V] [/?]\n\n"
  448. IDS_QUERY_HLP3 "Description: \n"
  449. IDS_QUERY_HLP4 " Enables an administrator to display the scheduled tasks on the\n"
  450. IDS_QUERY_HLP5 " local or remote system.\n\n"
  451. IDS_QUERY_HLP6 "Parameter List:\n"
  452. IDS_QUERY_HLP7 " /S system Specifies the remote system to connect to.\n\n"
  453. IDS_QUERY_HLP8 " /U username Specifies the user context under\n"
  454. IDS_QUERY_HLP9 " which the command should execute.\n\n"
  455. IDS_QUERY_HLP10 " /P password Specifies the password for the given\n"
  456. IDS_QUERY_HLP11 " user context.\n\n"
  457. IDS_QUERY_HLP12 " /FO format Specifies the output format to be \n"
  458. IDS_QUERY_HLP13 " displayed. Valid values: TABLE, LIST, CSV.\n\n"
  459. IDS_QUERY_HLP14 " /NH Specifies that the column header should not\n"
  460. IDS_QUERY_HLP15 " be displayed in the output.\n"
  461. IDS_QUERY_HLP16 " Valid only for TABLE and CSV formats.\n\n"
  462. IDS_QUERY_HLP17 " /V Specifies additional output to be \n"
  463. IDS_QUERY_HLP18 " displayed.\n\n"
  464. IDS_QUERY_HLP19 " /? Displays this help/usage.\n\n"
  465. IDS_QUERY_HLP20 "Examples:\n"
  466. IDS_QUERY_HLP21 " SCHTASKS /Query \n"
  467. IDS_QUERY_HLP22 " SCHTASKS /Query /? \n"
  468. IDS_QUERY_HLP23 " SCHTASKS /Query /S system /U user /P password\n"
  469. IDS_QUERY_HLP24 " SCHTASKS /Query /FO LIST /V /S system /U user /P password\n"
  470. IDS_QUERY_HLP25 " SCHTASKS /Query /FO TABLE /NH /V\n"
  471. END
  472. STRINGTABLE DISCARDABLE
  473. BEGIN
  474. IDS_DEL_HLP1 "\nSCHTASKS /Delete [/S system [/U username [/P password]]] /TN taskname\n"
  475. IDS_DEL_HLP2 " [/F]\n\n"
  476. IDS_DEL_HLP3 "Description:\n"
  477. IDS_DEL_HLP4 " Deletes one or more scheduled tasks.\n\n"
  478. IDS_DEL_HLP5 "Parameter List:\n"
  479. IDS_DEL_HLP6 " /S system Specifies the remote system to connect to.\n\n"
  480. IDS_DEL_HLP7 " /U username Specifies the user context under\n"
  481. IDS_DEL_HLP8 " which the command should execute.\n\n"
  482. IDS_DEL_HLP9 " /P password Specifies the password for the given\n"
  483. IDS_DEL_HLP10 " user context.\n\n"
  484. IDS_DEL_HLP11 " /TN taskname Specifies the name of the scheduled task to\n"
  485. IDS_DEL_HLP12 " delete. Wildcard ""*"" may be used to delete\n"
  486. IDS_DEL_HLP13 " all tasks.\n\n"
  487. IDS_DEL_HLP14 ""
  488. IDS_DEL_HLP15 " /F (Force) Deletes the task and suppresses\n"
  489. IDS_DEL_HLP16 " warnings if the specified task is currently\n"
  490. IDS_DEL_HLP17 " running.\n\n"
  491. IDS_DEL_HLP18 " /? Displays this help/usage.\n\n"
  492. IDS_DEL_HLP19 "Examples:\n"
  493. IDS_DEL_HLP20 " SCHTASKS /Delete /TN * /F\n"
  494. IDS_DEL_HLP21 " SCHTASKS /Delete /TN ""Backup and Restore""\n"
  495. IDS_DEL_HLP22 " SCHTASKS /Delete /S system /U user /P password /TN ""Start Restore""\n"
  496. IDS_DEL_HLP23 " SCHTASKS /Delete /S system /U user /P password /TN ""Start Backup"" /F\n"
  497. END
  498. STRINGTABLE DISCARDABLE
  499. BEGIN
  500. IDS_CHANGE_HLP1 "\nSCHTASKS /Change [/S system [/U username [/P password]]] {[/RU runasuser]\n"
  501. IDS_CHANGE_HLP2 " [/RP runaspassword] [/TR taskrun]} /TN taskname\n\n"
  502. IDS_CHANGE_HLP3 "Description:\n"
  503. IDS_CHANGE_HLP4 " Changes the program to run, or user account and password used\n"
  504. IDS_CHANGE_HLP5 " by a scheduled task.\n\n"
  505. IDS_CHANGE_HLP6 "Parameter List:\n"
  506. IDS_CHANGE_HLP7 " /S system Specifies the remote system to connect to.\n\n"
  507. IDS_CHANGE_HLP8 " /U username Specifies the user context under\n"
  508. IDS_CHANGE_HLP9 " which the command should execute.\n\n"
  509. IDS_CHANGE_HLP12 " /P password Specifies the password for the given\n"
  510. IDS_CHANGE_HLP13 " user context.\n\n"
  511. IDS_CHANGE_HLP14 ""
  512. IDS_CHANGE_HLP15 " /RU username Changes the user name (user context) under\n"
  513. IDS_CHANGE_HLP16 " which the scheduled task has to run.\n"
  514. IDS_CHANGE_HLP17 " For the system account, valid values are \n"
  515. IDS_CHANGE_HLP18 " """", ""NT AUTHORITY\SYSTEM"" or ""SYSTEM"".\n\n"
  516. IDS_CHANGE_HLP19 " /RP password Specifies a new password for the existing\n"
  517. IDS_CHANGE_HLP20 " user context or the password for a new\n"
  518. IDS_CHANGE_HLP21 " user account. Password will not effect for\n"
  519. IDS_CHANGE_HLP22 " the system account.\n\n"
  520. IDS_CHANGE_HLP23 " /TR taskrun Specifies a new program that the scheduled\n"
  521. IDS_CHANGE_HLP24 " task runs. Type the path and file name of \n"
  522. IDS_CHANGE_HLP25 " the program.\n\n"
  523. IDS_CHANGE_HLP26 " /TN taskname Specifies which scheduled task to change.\n\n"
  524. IDS_CHANGE_HLP27 ""
  525. IDS_CHANGE_HLP28 " /? Displays this help/usage.\n\n"
  526. IDS_CHANGE_HLP29 "Examples:\n"
  527. IDS_CHANGE_HLP30 " SCHTASKS /Change /RP password /TN ""Backup and Restore""\n"
  528. IDS_CHANGE_HLP31 " SCHTASKS /Change /TR restore.exe /TN ""Start Restore""\n"
  529. IDS_CHANGE_HLP32 " SCHTASKS /Change /S system /U user /P password /RU newuser \n"
  530. IDS_CHANGE_HLP33 " /TN ""Start Backup""\n"
  531. END
  532. STRINGTABLE DISCARDABLE
  533. BEGIN
  534. IDS_RUN_HLP1 "\nSCHTASKS /Run [/S system [/U username [/P password]]] /TN taskname\n\n"
  535. IDS_RUN_HLP2 "Description:\n "
  536. IDS_RUN_HLP3 " Runs a scheduled task immediately.\n\n"
  537. IDS_RUN_HLP4 "Parameter List:\n"
  538. IDS_RUN_HLP5 " /S system Specifies the remote system to connect\n"
  539. IDS_RUN_HLP6 " to.\n\n"
  540. IDS_RUN_HLP7 " /U username Specifies the user context under\n"
  541. IDS_RUN_HLP8 " which the command should execute.\n\n"
  542. IDS_RUN_HLP9 " /P password Specifies the password for the given\n"
  543. IDS_RUN_HLP10 " user context.\n\n"
  544. IDS_RUN_HLP11 " /TN taskname Identifies the scheduled task to run.\n\n"
  545. IDS_RUN_HLP12 " /? Displays this help/usage.\n\n"
  546. IDS_RUN_HLP13 "Examples:\n"
  547. IDS_RUN_HLP14 " SCHTASKS /Run /? \n"
  548. IDS_RUN_HLP15 " SCHTASKS /Run /TN ""Start Backup""\n"
  549. IDS_RUN_HLP16 " SCHTASKS /Run /S system /U user /P password /TN ""Backup and Restore""\n"
  550. END
  551. STRINGTABLE DISCARDABLE
  552. BEGIN
  553. IDS_END_HLP1 "\nSCHTASKS /End [/S system [/U username [/P password]]] /TN taskname\n\n"
  554. IDS_END_HLP2 "Description:\n"
  555. IDS_END_HLP3 " Stops a running scheduled task.\n\n"
  556. IDS_END_HLP4 "Parameter List:\n"
  557. IDS_END_HLP5 " /S system Specifies the remote system to connect\n"
  558. IDS_END_HLP6 " to.\n\n"
  559. IDS_END_HLP7 " /U username Specifies the user context under\n"
  560. IDS_END_HLP8 " which the command should execute.\n\n"
  561. IDS_END_HLP9 " /P password Specifies the password for the given\n"
  562. IDS_END_HLP10 " user context.\n\n"
  563. IDS_END_HLP11 " /TN taskname Specifies the scheduled task to \n"
  564. IDS_END_HLP12 " terminate.\n\n"
  565. IDS_END_HLP13 " /? Displays this help/usage.\n\n"
  566. IDS_END_HLP14 "Examples:\n"
  567. IDS_END_HLP15 " SCHTASKS /End /? \n"
  568. IDS_END_HLP16 " SCHTASKS /End /TN ""Start Backup""\n"
  569. IDS_END_HLP17 " SCHTASKS /End /S system /U user /P password /TN ""Backup and Restore""\n"
  570. END
  571. //
  572. // Version resources
  573. //
  574. #include <ntverp.h>
  575. #define VER_FILETYPE VFT_APP
  576. #define VER_FILESUBTYPE VFT2_UNKNOWN
  577. #define VER_FILEDESCRIPTION_STR "Schedule Tasks"
  578. #define VER_INTERNALNAME_STR "SchTasks.exe"
  579. #define VER_ORIGINALFILENAME_STR "ScTasks.exe"
  580. #include <common.ver>