Page 1 of 1

Running a Windows script

Posted: 10 Dec 2009 4:06
by Dylanesque
Hello,

I am testing windows scripting as follows...

1. Created a windows batch file in the format of..

echo on ]
dir c:\ ]


(I selected ] at the end of each command as per AdminGuide)

2. Set job type to WINDOWS and pointed at script.

3. Created parameters in the job def. steps tab as follows..

c) on Statement=dir Code =testfile
b) Do shout To=ECS Urgn=Very Urgent Msg=testfile found


I noticed at the end of the SYSOUT window it displays the Control-M Agent directory and "File not found" and discovered this was because of the "[" in the script so I removed it but it's still not shouting the alert.

Thanks in advance...I know it's a basic question but a tad stuck here...