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.

1177 lines
31 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: jt.rc
  7. //
  8. // Contents: Main resource definition file
  9. //
  10. // History: 01-02-96 DavidMun Created
  11. //
  12. // Notes: See Notes at the start of help.cxx for instructions on
  13. // adding help for a new command.
  14. //
  15. // When adding or editing strings in the RCDATA blocks,
  16. // remember that each string must be explicitly null
  17. // terminated, and that the DisplayHelp() function in help.cxx
  18. // expects to find an empty string ("\0") at the end of the
  19. // RCDATA block.
  20. //
  21. //--------------------------------------------------------------------------
  22. #include <windows.h>
  23. #include <ntverp.h>
  24. #define VER_FILETYPE VFT_APP
  25. #define VER_FILESUBTYPE VFT2_UNKNOWN
  26. #define VER_FILEDESCRIPTION_STR "Job Test"
  27. #define VER_INTERNALNAME_STR "jt\0"
  28. #define VER_ORIGINALFILENAME_STR "jt.exe"
  29. #include <common.ver>
  30. #include "resource.h"
  31. RC_NOTIMPL RCDATA
  32. BEGIN
  33. "This function is not yet implemented.\n\0"
  34. "\0"
  35. END
  36. RC_ABORT RCDATA
  37. BEGIN
  38. "Command:\n"
  39. "\n"
  40. " /ABJ - abort task\n"
  41. //" /ABQ - abort queue\n"
  42. "\n"
  43. "Purpose:\n"
  44. "\n"
  45. //" Invoke the Abort command on the task or queue.\n"
  46. " Invoke the Abort command on the task.\n"
  47. "\n"
  48. "Examples:\n"
  49. "\n"
  50. " /RJ /ABJ\n"
  51. " - runs a task, then aborts it\n\0"
  52. "\0"
  53. END
  54. RC_ATSIGN RCDATA
  55. BEGIN
  56. "Command:\n"
  57. "\n"
  58. " @ <file>\n"
  59. "\n"
  60. "Purpose:\n"
  61. "\n"
  62. " Read commands from a file.\n"
  63. "\n"
  64. "Arguments:\n"
  65. "\n"
  66. " <file> - name of file from which to read commands.\n"
  67. "\n"
  68. "Remarks:\n"
  69. "\n"
  70. " Blank lines and all characters following semicolons are ignored.\n"
  71. "\n"
  72. " Environment variables are expanded (just like batch files).\n"
  73. "\n"
  74. " Recursion is allowed.\n"
  75. "\n"
  76. "Examples:\n"
  77. "\n"
  78. " @script\n\0"
  79. "\0"
  80. END
  81. //
  82. // Resource Kit version does not contain a SAGE conversion entry point
  83. //
  84. #ifndef RES_KIT
  85. RC_CONVERTSAGE RCDATA
  86. BEGIN
  87. "Command:\n"
  88. "\n"
  89. " /CSAGE\n"
  90. "\n"
  91. "Purpose:\n"
  92. "\n"
  93. " Convert all SAGE tasks to task scheduler tasks.\n"
  94. "\n"
  95. "Remarks:\n"
  96. "\n"
  97. " This command is only available in versions of JT built for Win9x and\n"
  98. " running on Win9x.\n"
  99. "\n"
  100. " This copy of JT was built for %s.\n"
  101. "\n"
  102. "Examples:\n"
  103. "\n"
  104. " /csage\n\0"
  105. "\0"
  106. END
  107. #endif // RES_KIT not defined
  108. RC_TRIGPROPS RCDATA
  109. BEGIN
  110. " The property list has the form <propname> = <value>...\n"
  111. "\n"
  112. " The trigger properties and form of their values:\n"
  113. "\n"
  114. " StartDate = <date>\n"
  115. " EndDate = <date>\n"
  116. " StartTime = <time>\n"
  117. " MinutesDuration = n\n"
  118. " MinutesInterval = n\n"
  119. " HasEndDate = {1|0}\n"
  120. " KillAtDuration = {1|0}\n"
  121. " Disabled = {1|0}\n"
  122. " Type = {Once|Daily|Weekly|MonthlyDate|MonthlyDOW|OnIdle|AtStartup|AtLogon}\n"
  123. " TypeArguments = <type-args-list>\n"
  124. "\n"
  125. " <date> - { m/d/y | TODAY }\n"
  126. " <time> - { h:m | NOW }\n"
  127. " <type-args-list> - see below\n"
  128. "\n"
  129. " Note that NOW is actually %u seconds in the future so it can be used to\n"
  130. " create triggers that will fire soon.\n"
  131. "\n"
  132. "\n"
  133. " The following table lists the forms of the <type-args-list> property\n"
  134. " value for each of the trigger types:\n"
  135. "\n"
  136. " Trigger Argument List Argument meanings\n"
  137. " Type Format\n"
  138. " ----------- ------------ ----------------------------\n"
  139. " DAILY n DaysInterval\n"
  140. " WEEKLY n, <DOW> WeeksInterval, DaysOfTheWeek\n"
  141. " MONTHLYDATE <DOM>, <months> DaysOfTheMonth, Months\n"
  142. " MONTHLYDOW n, <DOW>, <months> Week, DaysOfTheWeek, Months\n"
  143. " ONCE (no args)\n"
  144. " ONIDLE (no args)\n"
  145. " ATSTARTUP (no args)\n"
  146. " ATLOGON (no args)\n"
  147. "\n"
  148. " <DOW> is a string with one letter per weekday. To specify the task\n"
  149. " is to run on every day, use the string UMTWRFA. To specify no days\n"
  150. " use a period.\n"
  151. "\n"
  152. " <DOM> is a comma-separated list of day numbers and ranges. Some examples:\n"
  153. " 1-31\n"
  154. " 10\n"
  155. " 20,21,22\n"
  156. " 1,3,5,7-10\n"
  157. " 2-8,20,12\n"
  158. "\n"
  159. " <months> is a string containing three letter abbreviations for months.\n"
  160. " For all months, use: JanFebMarAprMayJunJulAugSepOctNovDec (case and order\n"
  161. " are not significant).\n"
  162. "\n"
  163. " The trigger type must be specified before the type arguments, otherwise\n"
  164. " properties may appear in any order. Case, whitespace, and leading zeros\n"
  165. " are not significant.\n\0"
  166. "\0"
  167. END
  168. RC_CREATETRIGGER1 RCDATA
  169. BEGIN
  170. "Command:\n"
  171. "\n"
  172. " /CTJ [<props>] - create trigger in task\n"
  173. //" /CTQ [<props>] - create trigger in queue\n"
  174. "\n"
  175. "Purpose:\n"
  176. "\n"
  177. " Create a new trigger.\n"
  178. "\n"
  179. "Arguments:\n"
  180. "\n"
  181. " [<props>] - Optional list of trigger properties.\n"
  182. "\n"
  183. "Remarks:\n"
  184. "\n\0"
  185. "\0"
  186. END
  187. RC_CREATETRIGGER2 RCDATA
  188. BEGIN
  189. "\n"
  190. "Examples:\n"
  191. "\n"
  192. " /ctj\n"
  193. " - creates a trigger with default values\n"
  194. "\n"
  195. " /ctj StartTime=13:40 StartDate=3/4/1996 type=weekly typearguments = 1,mwf\n\0"
  196. "\0"
  197. END
  198. RC_DELETETRIGGER RCDATA
  199. BEGIN
  200. "Command:\n"
  201. "\n"
  202. " /DTJ [<id>] - delete trigger <id> (default 0) from task\n"
  203. //" * /DTQ [<id>] - delete trigger <id> (default 0) from queue\n"
  204. "\n"
  205. "Purpose:\n"
  206. "\n"
  207. //" Delete a single trigger from task or queue.\n"
  208. " Delete a single trigger from task.\n"
  209. "\n"
  210. "Arguments:\n"
  211. "\n"
  212. " [<id>] - 0-based index of trigger to delete. If omitted, trigger 0\n"
  213. " will be deleted.\n"
  214. "\n"
  215. "Examples:\n"
  216. "\n"
  217. " /dtj 3\n\0"
  218. "\0"
  219. END
  220. //
  221. // Resource Kit version does not contain an entry point to bring up prop sheets
  222. //
  223. #ifndef RES_KIT
  224. RC_EDITJOB RCDATA
  225. BEGIN
  226. "Command:\n"
  227. "\n"
  228. " /EJ [<pageno> [T|F]] - edit task\n"
  229. //"* /EJQ <name> [<pageno> [T|F]] - edit task <name> in queue\n"
  230. "\n"
  231. "Purpose:\n"
  232. "\n"
  233. " Invoke the Edit task UI.\n"
  234. "\n"
  235. "Arguments:\n"
  236. "\n"
  237. " <pageno> - if omitted, the entire property sheet is presented. Otherwise\n"
  238. " only the specified (zero-based) page is displayed.\n"
  239. " [T|F] - if page number is specified, may also be specified as\n"
  240. " persist-changes argument of IProvideTaskPage::GetPage\n"
  241. //" <name> - name of task in queue\n"
  242. "\n"
  243. "Remarks:\n"
  244. "\n"
  245. " The [T|F] argument is interpreted as TRUE if it starts with a 't' (case\n"
  246. " insensitive) and false otherwise. If omitted, it defaults to TRUE.\n"
  247. "\n"
  248. " If specified as false, this argument should prevent the property sheet\n"
  249. " code from persisting changes when the user selects Apply or OK. Any\n"
  250. //" changes the user made will have been made to the in-memory task or\n"
  251. " changes the user made will have been made to the in-memory task\n"
  252. //" queue object, however, which should be marked as dirty.\n"
  253. " object, however, which should be marked as dirty.\n"
  254. "\n"
  255. //" Remember that JT will automatically save the task or queue object if it\n"
  256. " Remember that JT will automatically save the task object if it\n"
  257. " is marked as dirty, except when executing the /LJ (or /LQ) command.\n"
  258. "\n"
  259. "Examples:\n"
  260. //"\n"
  261. //" /ejq atask\n"
  262. //" - edit the task 'atask' in the in-memory queue object\n"
  263. "\n"
  264. " /ej\n"
  265. " - edit the task object\n"
  266. "\n"
  267. " /ej 1\n"
  268. " - open the schedule page of the task property sheet\n\0"
  269. //"\n"
  270. //" /ejq atask 0 f\n"
  271. //" - open the task page of the task property sheet for task atask in the\n"
  272. //" in-memory queue object, and tell the property sheet not to\n"
  273. //" automatically persist changes\n\0"
  274. "\0"
  275. END
  276. //
  277. // Resource Kit version does not permit enumerator manipulation
  278. //
  279. RC_ENUMCLONE RCDATA
  280. BEGIN
  281. "Command:\n"
  282. "\n"
  283. " /ENC <id1> <id2> - enumerator clone <id1> from <id2>\n"
  284. "\n"
  285. "Purpose:\n"
  286. "\n"
  287. " Fill enumerator slot <id1> with a clone of the enumerator in slot <id2>.\n"
  288. "\n"
  289. "Arguments:\n"
  290. "\n"
  291. " <id1> - slot number of new enumerator\n"
  292. " <id2> - slot number of enumerator to copy\n"
  293. "\n"
  294. "Remarks:\n"
  295. "\n"
  296. " If slot <id1> is not empty, its enumerator will be released automatically.\n"
  297. " See help for the /SCE command for an explanation of enumerator slots.\n"
  298. "\n"
  299. "Examples:\n"
  300. "\n"
  301. " /enc 0 1\n"
  302. " - clone the enumerator in slot 1 into slot 0\n\0"
  303. "\0"
  304. END
  305. //
  306. // Resource Kit version does not permit enumerator manipulation
  307. //
  308. RC_ENUMNEXT RCDATA
  309. BEGIN
  310. "Command:\n"
  311. "\n"
  312. " /ENN <id> <n> - enumerate next <n> items\n"
  313. "\n"
  314. "Purpose:\n"
  315. "\n"
  316. //" Use enumerator in slot <id> to display the next <n> task/queue objects\n"
  317. " Use enumerator in slot <id> to display the next <n> task objects\n"
  318. " in the tasks folder.\n"
  319. "\n"
  320. "Arguments:\n"
  321. "\n"
  322. " <id> - slot number of enumerator to use\n"
  323. " <n> - maximum number of items to enumerate\n"
  324. "\n"
  325. "Remarks:\n"
  326. "\n"
  327. " This command displays an error if slot <id> is empty.\n"
  328. " <n> is the <celt> argument for IEnumtasks::Next.\n"
  329. " See help for the /SCE command for an explanation of enumerator slots.\n"
  330. "\n"
  331. "Examples:\n"
  332. "\n"
  333. " /enn 1 3\n"
  334. " - use enumerator in slot 1 to display the next three items.\n\0"
  335. "\0"
  336. END
  337. //
  338. // Resource Kit version does not permit enumerator manipulation
  339. //
  340. RC_ENUMRESET RCDATA
  341. BEGIN
  342. "Command:\n"
  343. "\n"
  344. " /ENR <id> - enumerator reset\n"
  345. "\n"
  346. "Purpose:\n"
  347. "\n"
  348. " Reset the enumerator in slot <id>.\n"
  349. "\n"
  350. "Arguments:\n"
  351. "\n"
  352. " <id> - slot number of enumerator to reset\n"
  353. "\n"
  354. "Remarks:\n"
  355. "\n"
  356. " This command displays an error if slot <id> is empty.\n"
  357. " See help for the /SCE command for an explanation of enumerator slots.\n"
  358. "\n"
  359. "Examples:\n"
  360. "\n"
  361. " /sce 1 /enn 1 3 /enr 1 /enn 1 3\n"
  362. " - create an enumerator in slot 1, enumerate the first three items,\n"
  363. " then reset it and enumerate the first three items again.\n\0"
  364. "\0"
  365. END
  366. //
  367. // Resource Kit version does not permit enumerator manipulation
  368. //
  369. RC_ENUMSKIP RCDATA
  370. BEGIN
  371. "Command:\n"
  372. "\n"
  373. " /ENS <id> <n> - enumerator skip forward by <n>\n"
  374. "\n"
  375. "Purpose:\n"
  376. "\n"
  377. " Skip forward by <n> items on enumerator in slot <id>.\n"
  378. "\n"
  379. "Arguments:\n"
  380. "\n"
  381. " <id> - slot number of enumerator to perform skip\n"
  382. //" <n> - number of task/queue objects to skip\n"
  383. " <n> - number of task objects to skip\n"
  384. "\n"
  385. "Remarks:\n"
  386. "\n"
  387. " This command displays an error if slot <id> is empty.\n"
  388. " See help for the /SCE command for an explanation of enumerator slots.\n"
  389. "\n"
  390. "Examples:\n"
  391. "\n"
  392. " /enr 0 /enn 0 1 /ens 0 1 /enn 0 1\n"
  393. " - reset the enumerator in slot 0, enumerate the first item,\n"
  394. " skip the second item, and enumerate the third item.\n\0"
  395. "\0"
  396. END
  397. //
  398. // Resource Kit version does not permit use of objects other than TASKS,
  399. // which removes the need for this function (also, Queues are NYI as of NT5)
  400. //
  401. RC_ISJOBORQUEUE RCDATA
  402. BEGIN
  403. "Command:\n"
  404. "\n"
  405. //" /ISJQ <file> - invokes IsTask and IsQueue methods on <file>\n"
  406. " /ISJQ <file> - invokes IsTask method on <file>\n"
  407. "\n"
  408. "Purpose:\n"
  409. "\n"
  410. //" Ask the task scheduler code whether a given file is a task or a queue\n"
  411. " Ask the task scheduler code whether a given file is a task \n"
  412. " object.\n"
  413. "\n"
  414. "Arguments:\n"
  415. "\n"
  416. " <file> - file to check.\n"
  417. "\n"
  418. "Remarks:\n"
  419. "\n"
  420. //" Errors returned by the IsTask and IsQueue methods are displayed but are\n"
  421. " Errors returned by the IsTask method are displayed but are\n"
  422. " not considered an error in this command. This allows you to specify\n"
  423. " a number of invalid filenames in a single script, which would otherwise\n"
  424. " terminate after the first /ISJQ to return an error.\n"
  425. "\n"
  426. "Examples:\n"
  427. "\n"
  428. " /isjq my_task.job\n"
  429. //" - displays the results of calling Istask and IsQueue methods with the\n"
  430. " - displays the results of calling the IsTask method with the\n"
  431. " file my_task.job.\n\0"
  432. "\0"
  433. END
  434. #endif // RES_KIT not defined
  435. RC_LOAD RCDATA
  436. BEGIN
  437. "Command:\n"
  438. "\n"
  439. " /LJ <file> - load task object from <file>\n"
  440. //" * /LQ <file> - load queue object from <file>\n"
  441. "\n"
  442. "Purpose:\n"
  443. "\n"
  444. //" Load a task or queue file.\n"
  445. " Load a task file.\n"
  446. "\n"
  447. "Arguments:\n"
  448. "\n"
  449. " <file> - file to load.\n"
  450. "\n"
  451. "Remarks:\n"
  452. "\n"
  453. " JT acts like notepad.exe, in that when it starts it creates a blank task\n"
  454. " object, and all commands operate on that object. You can fill that blank\n"
  455. " object by loading a file from disk, or by putting data into it using the\n"
  456. " /SJ (set task) command.\n"
  457. "\n"
  458. " Every Save command (/SVJ) is actually a Save As.\n"
  459. "\n"
  460. " Just before JT exits, it checks to see if the task object is dirty. If a\n"
  461. " name has been associated with it by a Load or Save command, it will be\n"
  462. " saved automatically.\n"
  463. "\n"
  464. " The task object is *not* automatically saved before being loaded if it is\n"
  465. " dirty.\n"
  466. "\n"
  467. " See also the /SAC command.\n"
  468. "\n"
  469. "Examples:\n"
  470. "\n"
  471. " /lj mytask.job /pj\n"
  472. " - load mytask.job into the in-memory task object, then print all its\n"
  473. " properties.\n\0"
  474. "\0"
  475. END
  476. RC_PRINT RCDATA
  477. BEGIN
  478. "Command:\n"
  479. "\n"
  480. " /PJ - print all properties of task\n"
  481. //" * /PQ - print all properties of queue\n"
  482. "\n"
  483. "Purpose:\n"
  484. "\n"
  485. //" Print properties and triggers of task or queue.\n"
  486. " Print properties and triggers of task.\n"
  487. "\n"
  488. "Remarks:\n"
  489. "\n"
  490. " To print only a single trigger, use PTJ. To print only a \n"
  491. " trigger string, use PSJ.\n"
  492. //" To print only a single trigger, use PTJ or PTQ. To print only a\n"
  493. //" trigger string, use PSJ or PSQ.\n"
  494. "\n"
  495. "Examples:\n"
  496. "\n"
  497. " /pj\n\0"
  498. "\0"
  499. END
  500. RC_PRINTRUNTIME RCDATA
  501. BEGIN
  502. "Command:\n"
  503. "\n"
  504. " /PRJ [<n>] - print next <n> or today's run times of task\n"
  505. //" * /PRQ [<n>] - print next <n> or today's run times of queue\n"
  506. "\n"
  507. "Purpose:\n"
  508. "\n"
  509. //" Print next run times of task or queue.\n"
  510. " Print next run times of task.\n"
  511. "\n"
  512. "Arguments:\n"
  513. "\n"
  514. " <n> - number of run times to print. If omitted, print run times from\n"
  515. " now till the end of today\n"
  516. "\n"
  517. "Examples:\n"
  518. "\n"
  519. " /prj\n"
  520. " - print remaining run times for today\n"
  521. "\n"
  522. " /prq 4\n"
  523. " - print next 4 run times\n\0"
  524. "\0"
  525. END
  526. RC_PRINTSTRING RCDATA
  527. BEGIN
  528. "Command:\n"
  529. "\n"
  530. " /PSJ [<id>] - print trigger strings of <id> or all in task\n"
  531. //" * /PSQ [<id>] - print trigger strings of <id> or all in queue\n"
  532. "\n"
  533. "Purpose:\n"
  534. "\n"
  535. //" Print one or all trigger strings of task or queue.\n"
  536. " Print one or all trigger strings of task.\n"
  537. "\n"
  538. "Arguments:\n"
  539. "\n"
  540. " [<id>] - 0-based index of trigger to print string for. If omitted,\n"
  541. " print all trigger strings.\n"
  542. "\n"
  543. "Examples:\n"
  544. "\n"
  545. " /psj\n"
  546. " - print all trigger strings\n"
  547. "\n"
  548. " /psq 4\n"
  549. " - print string for trigger 4\n\0"
  550. "\0"
  551. END
  552. RC_PRINTTRIGGER RCDATA
  553. BEGIN
  554. "Command:\n"
  555. "\n"
  556. " /PTJ [<id>] - print trigger props of <id> or all in task\n"
  557. //"* /PTQ [<id>] - print trigger props of <id> or all in queue\n"
  558. "\n"
  559. "Purpose:\n"
  560. "\n"
  561. //" Print the properties of one or all triggers of task or queue.\n"
  562. " Print the properties of one or all triggers of task.\n"
  563. "\n"
  564. "Arguments:\n"
  565. "\n"
  566. " [<id>] - 0-based index of trigger to print. If omitted,\n"
  567. " print all triggers.\n"
  568. "\n"
  569. "Examples:\n"
  570. "\n"
  571. " /ptj\n"
  572. " - print properties of all triggers\n\0"
  573. //"\n"
  574. //" /ptq 0\n"
  575. //" - print properties of first trigger of queue\n\0"
  576. "\0"
  577. END
  578. RC_RUN RCDATA
  579. BEGIN
  580. "Command:\n"
  581. "\n"
  582. " /RJ - run task\n"
  583. //"* /RQ - run queue\n"
  584. "\n"
  585. "Purpose:\n"
  586. "\n"
  587. //" Run the task or queue.\n"
  588. " Run the task.\n"
  589. "\n"
  590. "Examples:\n"
  591. "\n"
  592. " /lj mytask.job /rj\n"
  593. " - load mytask.job into the in-memory task object, then run it.\n\0"
  594. "\0"
  595. END
  596. RC_SAVE RCDATA
  597. BEGIN
  598. "Command:\n"
  599. "\n"
  600. " /SVJ [<file>] - save task to <file>\n"
  601. //"* /SVQ [<file>] - save queue to <file>\n"
  602. "\n"
  603. "Purpose:\n"
  604. "\n"
  605. //" Write the task or queue to disk.\n"
  606. " Write the task to disk.\n"
  607. "\n"
  608. "Arguments:\n"
  609. "\n"
  610. " <file> - file to save. If omitted, saves to last file loaded or saved.\n"
  611. "\n"
  612. "Remarks:\n"
  613. "\n"
  614. //" Any task or queue object which has an associated filename (because it's\n"
  615. " Any task object which has an associated filename (because it's\n"
  616. //" been used with the LJ/LQ, SACJ/SACQ, SNJ/SNQ, SCJ,SCQ commands) will\n"
  617. " been used with the LJ, SAJ, SNJ, SAC commands) will\n"
  618. " automatically be saved, if it has been modified, just before JT exits.\n"
  619. "\n"
  620. " Therefore these save commands are most useful for doing a save as.\n"
  621. "\n"
  622. "Examples:\n"
  623. "\n"
  624. " /sac a.job /svj b.job\n"
  625. " - load <tasks folder>\a.job into the in-memory task object, then save\n"
  626. " it to b.job in the current directory.\n\0"
  627. "\0"
  628. END
  629. RC_ACTIVATE RCDATA
  630. BEGIN
  631. "Command:\n"
  632. "\n"
  633. //" /SAC <file> - task or queue file to activate (load).\n"
  634. " /SAC <file> - task file to activate (load).\n"
  635. "\n"
  636. "Purpose:\n"
  637. "\n"
  638. //" Load the specified task or queue object into the in-memory task or queue\n"
  639. " Load the specified task object into the in-memory task\n"
  640. " object.\n"
  641. "\n"
  642. " If the in-memory object is dirty, it will be saved first.\n"
  643. "\n"
  644. "Arguments:\n"
  645. "\n"
  646. " <file> - file to load.\n"
  647. "\n"
  648. "Examples:\n"
  649. "\n"
  650. " /sac foo.job\n"
  651. " - load <tasks folder>\foo.job into the in-memory task object.\n"
  652. "\n"
  653. " /sac bar\n"
  654. //" - load <tasks folder>\bar.job or <tasks folder>\bar.que into the\n"
  655. " - load <tasks folder>\bar.job into the\n"
  656. //" in-memory task or queue object.\n\0"
  657. " in-memory task object.\n\0"
  658. "\0"
  659. END
  660. RC_ADD RCDATA
  661. BEGIN
  662. "Command:\n"
  663. "\n"
  664. " /SAJ <file> - save in-memory task object in tasks\\<file>.\n"
  665. //" /SAQ <file> - save in-memory queue object in tasks\\<file>.\n"
  666. "\n"
  667. "Purpose:\n"
  668. "\n"
  669. //" Save the in-memory task or queue object in the tasks folder.\n"
  670. " Save the in-memory task object in the tasks folder.\n"
  671. "\n"
  672. "Arguments:\n"
  673. "\n"
  674. " <file> - filename to save.\n"
  675. "\n"
  676. "Remarks:\n"
  677. "\n"
  678. " This command acts as a Save As operation. Any changes made to the in-\n"
  679. " memory object after this command is executed will automatically be saved\n"
  680. " to <file> before JT exits.\n"
  681. "\n"
  682. " The scheduler will return an error if tasks\\<file> exists.\n"
  683. "\n"
  684. "Examples:\n"
  685. "\n"
  686. " /saj foo.job\n"
  687. " - save the in-memory task object in <tasks folder>\foo.job.\n\0"
  688. //"\n"
  689. //" /saq barbe\n"
  690. //" - save the in-memory queue object in <tasks folder>\barbe.que.\n\0"
  691. "\0"
  692. END
  693. #ifndef RES_KIT
  694. //
  695. // Resource Kit version does not permit manipulation of enumerators
  696. //
  697. RC_CREATEENUM RCDATA
  698. BEGIN
  699. "Command:\n"
  700. "\n"
  701. " /SCE <id> - scheduler create enumerator in slot <id>=0..%u\n"
  702. "\n"
  703. "Purpose:\n"
  704. "\n"
  705. //" Fill slot <id> with a new task/queue object enumerator.\n"
  706. " Fill slot <id> with a new task object enumerator.\n"
  707. "\n"
  708. "Arguments:\n"
  709. "\n"
  710. " <id> - slot to fill with new enumerator.\n"
  711. "\n"
  712. "Remarks:\n"
  713. "\n"
  714. " You must use this command to put an enumerator in a slot before you\n"
  715. " can use that slot with the /ENC (clone), /ENN (next), /ENR (reset), or\n"
  716. " /ENS (skip) commands.\n"
  717. "\n"
  718. " There are %u slots, numbered 0-%u, which you can use. If you specify\n"
  719. " a slot number that already contains an enumerator, that enumerator is\n"
  720. " released before the slot is filled with a new enumerator.\n"
  721. "\n"
  722. " All enumerators you created with this command are automatically\n"
  723. " released before JT exits.\n"
  724. "\n"
  725. "Examples:\n"
  726. "\n"
  727. " /sce 1\n"
  728. " - create a new enumerator in slot 1.\n\0"
  729. "\0"
  730. END
  731. #endif // RES_KIT not defined
  732. RC_DELETE RCDATA
  733. BEGIN
  734. "Command:\n"
  735. "\n"
  736. " /SD <file> - delete tasks\\<file>.\n"
  737. "\n"
  738. "Purpose:\n"
  739. "\n"
  740. //" Delete the specified task or queue object from the tasks folder.\n"
  741. " Delete the specified task object from the tasks folder.\n"
  742. "\n"
  743. "Arguments:\n"
  744. "\n"
  745. //" <file> - filename of task or queue object to delete.\n"
  746. " <file> - filename of task object to delete.\n"
  747. "\n"
  748. "Examples:\n"
  749. "\n"
  750. " /sd foo.job\n"
  751. " - delete <tasks folder>\foo.job.\n\0"
  752. "\0"
  753. END
  754. RC_ENUM RCDATA
  755. BEGIN
  756. "Command:\n"
  757. "\n"
  758. //" /SE [<n>] [P] - scheduler enum tasks/queues <n> at a time, [P]rint\n"
  759. " /SE [<n>] [P] - scheduler enum tasks <n> at a time, [P]rint\n"
  760. "\n"
  761. "Purpose:\n"
  762. "\n"
  763. //" Enumerate all tasks/queues in the tasks folder, optionally printing all\n"
  764. " Enumerate all tasks in the tasks folder, optionally printing all\n"
  765. " the properties of each.\n"
  766. "\n"
  767. "Arguments:\n"
  768. "\n"
  769. " [<n>] - optional value to use for celt in IEnumWorkItems::Next.\n"
  770. " [P] - optional flag to make JT dump properties of enumerated objects.\n"
  771. "\n"
  772. "Remarks:\n"
  773. "\n"
  774. " If the [P] flag is not specified, only the names of the enumerated\n"
  775. " objects are displayed.\n"
  776. "\n"
  777. "Examples:\n"
  778. "\n"
  779. " /se\n"
  780. " - print the names of all objects in the tasks folder, one per line.\n"
  781. "\n"
  782. " /se p\n"
  783. " - print all properties of all objects in the tasks folder\n"
  784. "\n"
  785. " /se 2\n"
  786. " - print the names of all objects in the tasks folder, one per line.\n"
  787. " use 2 for the celt argument to IEnumWorkItems::Next.\n\0"
  788. "\0"
  789. END
  790. RC_GETCREDENTIALS RCDATA
  791. BEGIN
  792. "Command:\n"
  793. "\n"
  794. " /GC - get credentials (account name only)\n"
  795. "\n"
  796. "Purpose:\n"
  797. "\n"
  798. " Print the credential account name\n"
  799. "\n"
  800. "Examples:\n"
  801. "\n"
  802. " /gc\n"
  803. " - print the credential account name.\n\0"
  804. "\0"
  805. END
  806. RC_GETMACHINE RCDATA
  807. BEGIN
  808. "Command:\n"
  809. "\n"
  810. " /GM - get target machine\n"
  811. "\n"
  812. "Purpose:\n"
  813. "\n"
  814. " Print the name of the currently targeted machine\n"
  815. "\n"
  816. "Remarks:\n"
  817. "\n"
  818. " This should appear as \\\\machine-name.\n"
  819. " Note also that the target machine is not persisted across multiple runs of JT.\n"
  820. "\n"
  821. "Examples:\n"
  822. "\n"
  823. " /gm\n"
  824. " - print the name of the current target of Scheduler commands.\n\0"
  825. "\0"
  826. END
  827. RC_NEW RCDATA
  828. BEGIN
  829. "Command:\n"
  830. "\n"
  831. " /SNJ <file> - create tasks\\<file> and load it into in-memory task object.\n"
  832. //" /SNQ <file> - create tasks\\<file> and load it into in-memory queue object.\n"
  833. "\n"
  834. "Purpose:\n"
  835. "\n"
  836. //" Create a new, empty task or queue object in the tasks folder and load it\n"
  837. " Create a new, empty task object in the tasks folder and load it\n"
  838. //" into the in-memory task or queue object.\n"
  839. " into the in-memory task object.\n"
  840. "\n"
  841. "Arguments:\n"
  842. "\n"
  843. //" <file> - filename of task or queue object to load.\n"
  844. " <file> - filename of task object to load.\n"
  845. "\n"
  846. "Remarks:\n"
  847. "\n"
  848. //" CAUTION: the in-memory task or queue object is NOT SAVED before being\n"
  849. " CAUTION: the in-memory task object is NOT SAVED before being\n"
  850. //" replaced. This allows you to test the behavior of the task or queue\n"
  851. #ifndef RES_KIT
  852. " replaced. This allows you to test the behavior of the task\n"
  853. " object when it is released while dirty.\n"
  854. #else
  855. " replaced.\n"
  856. #endif
  857. "\n"
  858. "Examples:\n"
  859. "\n"
  860. " /ctj /snj foo.job\n"
  861. " - modify the in-memory task object, then create <tasks folder>\foo.job,\n"
  862. " and load it into the in-memory task object without first saving the\n"
  863. " existing in-memory object.\n\0"
  864. //"\n"
  865. //" /snq barbe\n"
  866. //" - create <tasks folder>\barbe.que and load it into the in-memory queue\n"
  867. //" object.\n\0"
  868. "\0"
  869. END
  870. RC_SETCREDENTIALS RCDATA
  871. BEGIN
  872. "Command:\n"
  873. "\n"
  874. " /SC <new acct> <new pswd> - create/set credentials.\n"
  875. "\n"
  876. "Purpose:\n"
  877. "\n"
  878. " Specify new or change existing task credentials.\n"
  879. "\n"
  880. "Arguments:\n"
  881. "\n"
  882. " <new acct> - new account name. Mandatory.\n"
  883. " <new pswd> - new password. Specify the string \42\42 for a blank\n"
  884. " password.\n"
  885. "\n"
  886. "Remarks:\n"
  887. " The password may also specified as NULL if the account name is set.\n"
  888. " NULL as a password indicates that the task should be run ONLY if\n"
  889. " the specified user is logged on at the time the task is set to\n"
  890. " execute. Users may create tasks of this type only for themselves.\n"
  891. " Administrators may create them for any user.\n"
  892. "\n"
  893. "Examples:\n"
  894. "\n"
  895. " /sc MYDOMAIN\\joeuser JoesPassword\n"
  896. " - Specify new credentials.\n\0"
  897. "\0"
  898. END
  899. RC_SETJOB RCDATA
  900. BEGIN
  901. "Command:\n"
  902. "\n"
  903. " /SJ <props> - set task's properties\n"
  904. "\n"
  905. "Purpose:\n"
  906. "\n"
  907. " Change one or more properties on the in-memory task object.\n"
  908. "\n"
  909. "Arguments:\n"
  910. "\n"
  911. " <props> - list of task properties.\n"
  912. "\n"
  913. "Remarks:\n"
  914. "\n"
  915. " The property list has the form <propname> = <value>...\n"
  916. "\n"
  917. " The task properties and the form of their values:\n"
  918. "\n"
  919. " ApplicationName = <path>\n"
  920. " Parameters = <string>\n"
  921. " WorkingDirectory = <path>\n"
  922. " Comment = <string>\n"
  923. " Creator = <string>\n"
  924. " Priority = { Idle | Normal | High | Realtime }\n"
  925. " MaxRunTime = <int> (in milliseconds)\n"
  926. " Idle = <int> <int> (wait & deadline, in minutes)\n"
  927. #ifndef RES_KIT
  928. " Interactive = { 1 | 0 }\n"
  929. #endif
  930. " DontStartIfOnBatteries = { 1 | 0 }\n"
  931. " KillIfGoingOnBatteries = { 1 | 0 }\n"
  932. " RunOnlyIfLoggedOn = { 1 | 0 }\n"
  933. " SystemRequired = { 1 | 0 }\n"
  934. " DeleteWhenDone = { 1 | 0 }\n"
  935. " Suspend = { 1 | 0 }\n"
  936. " HaltOnError = { 1 | 0 }\n"
  937. " StartOnlyIfIdle = { 1 | 0 }\n"
  938. " KillOnIdleEnd = { 1 | 0 }\n"
  939. " RestartOnIdleResume = { 1 | 0 }\n"
  940. " Hidden = { 1 | 0 }\n"
  941. " TaskFlags = <int> (in decimal)\n"
  942. "\n"
  943. " <string> - must be surrounded by double quotes if it contains spaces\n"
  944. " <date> - { m/d/y | TODAY }\n"
  945. " <int> - any integer\n"
  946. "\n"
  947. " Case is not significant (i.e., IDLE and Idle are both legal).\n"
  948. "\n"
  949. "Examples:\n"
  950. "\n"
  951. " /sj command = notepad.exe Priority=idle DeleteWhenDone=1\n\0"
  952. "\0"
  953. END
  954. RC_SETMACHINE RCDATA
  955. BEGIN
  956. "Command:\n"
  957. "\n"
  958. " /SM [<machine>] - set machine (NULL = local machine if omitted)\n"
  959. "\n"
  960. "Purpose:\n"
  961. "\n"
  962. " Retarget future ITaskScheduler methods at a remote or the local machine.\n"
  963. "\n"
  964. "Arguments:\n"
  965. "\n"
  966. " [<machine>] - machine to target, in the form \\\\machine-name.\n"
  967. "\n"
  968. "Remarks:\n"
  969. "\n"
  970. " If argument is omitted, command targets local machine. The argument\n"
  971. " may also explicitly target the local machine. Note that the\n"
  972. " machine choice is not persisted across invocations of JT.\n"
  973. "\n"
  974. "Examples:\n"
  975. "\n"
  976. " /sm\n"
  977. " - target the local machine.\n"
  978. "\n"
  979. " !sm bogus /gm\n"
  980. " - attempt to target a non-existent machine, then print currently\n"
  981. " targeted machine (to verify that it hasn't changed).\n\0"
  982. "\0"
  983. END
  984. RC_SETTRIGGER1 RCDATA
  985. BEGIN
  986. "Command:\n"
  987. "\n"
  988. " /STJ [id] <props> - set properties of trigger [id] on task\n"
  989. //" /STQ [id] <props> - set properties of trigger [id] on queue\n"
  990. "\n"
  991. "Purpose:\n"
  992. "\n"
  993. //" Change one or more properties of a trigger in the in-memory task or queue\n"
  994. " Change one or more properties of a trigger in the in-memory task \n"
  995. " object.\n"
  996. "\n"
  997. "Arguments:\n"
  998. "\n"
  999. " [id] - trigger number. If omitted, trigger 0 is modified.\n"
  1000. " <props> - list of trigger properties.\n"
  1001. "\n"
  1002. "Remarks:\n"
  1003. "\n\0"
  1004. "\0"
  1005. END
  1006. RC_SETTRIGGER2 RCDATA
  1007. BEGIN
  1008. "\n"
  1009. "Examples:\n"
  1010. " /stj enddate=today\n"
  1011. " - set the end date of trigger 0 on the in-memory task object to today's\n"
  1012. " date.\n\0"
  1013. //"\n"
  1014. //" /stq 2 MinutesInterval = 20\n"
  1015. //" - set the repetition interval on trigger 2 of the in-memory queue\n"
  1016. //" object to 20 minutes.\n\0"
  1017. "\0"
  1018. END
  1019. RC_USAGE1 RCDATA
  1020. BEGIN
  1021. "Microsoft (R) Task Scheduler Command Line Utility\n"
  1022. "Copyright (C) Microsoft Corp 1995-1998. All rights reserved.\n"
  1023. "This executable compiled %s for %s.\n"
  1024. "\n"
  1025. "usage: JT {[options]|[@commandfile]}\n"
  1026. "\n"
  1027. "options:\n"
  1028. "\n"
  1029. " @ <file> - parse file\n"
  1030. " /? [cmd] - display help on [cmd], e.g. /? abj\n"
  1031. " !<cmd> - don't stop if command returns error\n"
  1032. " /ABJ - abort task\n"
  1033. //" /ABQ - abort queue\n"
  1034. //" /AJQ - add task to queue\n"
  1035. #ifndef RES_KIT
  1036. " /CSAGE - convert SAGE tasks to tasks (Win9x only)\n"
  1037. #endif
  1038. " /CTJ [<props>] - create trigger in task\n"
  1039. //" /CTQ [<props>] - create trigger in queue\n"
  1040. " /DTJ [<id>] - delete trigger <id> (default 0) from task\n"
  1041. //" /DTQ [<id>] - delete trigger <id> (default 0) from queue\n"
  1042. #ifndef RES_KIT
  1043. " /EJ [<n> [T|F]] - edit task page <n>, persist changes T/f\n"
  1044. //" /EJQ <a>[<n>[T|F]] - edit task with name <a> in queue\n"
  1045. " /ENC <id1> <id2> - enumerator clone <id1> from <id2> (see SCE command)\n"
  1046. " /ENN <id> <n> - enumerate next <n> items (see SCE command)\n"
  1047. " /ENR <id> - enumerator reset (see SCE command)\n"
  1048. " /ENS <id> <n> - enumerator skip forward by <n> (see SCE command)\n"
  1049. #endif
  1050. " /GC - get credential account name\n"
  1051. " /GM - get target machine\n"
  1052. //" /ISJQ <file> - test <file> to see if it's a task or a queue\n"
  1053. #ifndef RES_KIT
  1054. " /ISJQ <file> - test <file> to see if it is a task\n"
  1055. #endif
  1056. " /LJ <file> - load task object from <file>\n"
  1057. //" /LQ <file> - load queue object from <file>\n"
  1058. " /PJ - print all properties of task\n"
  1059. //" /PQ - print all properties of queue\n"
  1060. " /PRJ [<n>] - print next <n> or today's remaining run times of task\n\0"
  1061. "\0"
  1062. END
  1063. RC_USAGE2 RCDATA
  1064. BEGIN
  1065. //" /PRQ [<n>] - print next <n> or today's remaining run times of queue\n"
  1066. " /PSJ [<id>] - print trigger strings of <id> or all in task\n"
  1067. //" /PSQ [<id>] - print trigger strings of <id> or all in queue\n"
  1068. " /PTJ [<id>] - print trigger props of <id> or all in task\n"
  1069. //" /PTQ [<id>] - print trigger props of <id> or all in queue\n"
  1070. " /RJ - run task\n"
  1071. //" /RQ - run queue\n"
  1072. //" /RMJQ <name> - remove task from queue\n"
  1073. //" /SAC <file> - scheduler activate task/queue (load tasks\\<file>)\n"
  1074. " /SAC <file> - scheduler activate task (load tasks\\<file>)\n"
  1075. " /SAJ <file> - scheduler add task (save as tasks\\<file>)\n"
  1076. //" /SAQ <file> - scheduler add queue (save as tasks\\<file>)\n"
  1077. " /SC <acct> <pwd> - set task credentials\n"
  1078. #ifndef RES_KIT
  1079. " /SCE <id> - scheduler create enumerator in slot <id>=0..%u\n"
  1080. #endif
  1081. //" /SD <file> - scheduler delete task/queue (delete tasks\\<file>)\n"
  1082. " /SD <file> - scheduler delete task (delete tasks\\<file>)\n"
  1083. //" /SE [<n>] [P] - scheduler enum tasks/queues <n> at a time, [P]rint\n"
  1084. " /SE [<n>] [P] - scheduler enum tasks <n> at a time, [P]rint\n"
  1085. " /SJ <props> - set task's properties\n"
  1086. " /SM [<machine>] - set machine (NULL = local machine if omitted)\n"
  1087. //" /SQ <props> - set queue properties\n"
  1088. " /SNJ <file> - scheduler new task (replaces in-memory task object)\n"
  1089. //" /SNQ <file> - scheduler new queue (replaces in-memory queue object)\n"
  1090. " /STJ [id] props - set properties of task trigger <id> or 0\n"
  1091. //" /STQ [id] props - set properties of queue trigger <id> or 0\n"
  1092. " /SVJ [<file>] - save task to <file>\n"
  1093. //" /SVQ [<file>] - save queue to <file>\n"
  1094. "\n"
  1095. " For detailed help use: JT /? <command-name>, e.g. JT /? LJ.\n\0"
  1096. "\0"
  1097. END