Perhaps, you want to change command line of every job running "MyProgram.exe /myswitch" to "MyNewProgram.exe /myswitch". This can done as the following 1. Create new script job, let's call mass update 2. Here is the job script (mostly copy and paste fro mthe help) // declare script variables Dim( job_list, string ) Dim( no_more, boolean ) Dim( job_id, string ) Dim( command_line, string ) Dim( pos, number ) // get job list JobList( "", job_list ) // parse the list isEqual( job_list, "", no_more ) LoopUntil( no_more, END_LOOP ) // get next job ID GetToken(",", job_list, job_id ) // get command line JobDescribe( job_id, "COMMAND", command_line ) // check comamnd line InStr( command_line, "MyProgram.exe", 1, pos ) If( pos, CHANGE_IT, DO_NEXT ) CHANGE_IT: JobModify( job_id, "COMMAND", "MyNewProgram.exe /myswitch" ) DO_NEXT: isEqual( job_list, "", no_more ) END_LOOP: : We are running an older version. But we're not ready to upgrade yet, so I'd : like get it working with the version we're running if possible. (v3.4.6) : I would assume there's an inconsistency between import and export commands. : Either the export is renaming or missing an attribute to export, or the : import : is trying to import a new/non-existent/unknown attribute. A newer version : may have fixed this. : Can you describe your "script type job"? : We have a 4-500 jobs that are similar in most ways, but vary in : command lines, arguments, script notification, trigger file watches and : creation, etc. It would be more convenient to access the raw table and : then import the database, rather than editing each job through dialog boxes.
|