on 04-05-2016 11:01 AM
Hi,
I have a scenario to write a script to read data from text file , if the text file have value 1 then job should be execute else raise exception.
Please give me inputs.
Thanks,
Chandra
You can use the exce function to achieve this.
Let us assume you have a status_file.txt. Here am creating a small batch script as "status_read.bat". This batch will read the file.
@echo off
cls
cd C:\Users\boproject2\Desktop
type status_file.txt
echo.
echo.
exit
Am calling the above batch script ("status_read.bat") in the Data Services Script.
By using the Global Variable we can capture status_file.txt data (Make sure you follow the scripting rules and use the escape characters in the Script).
Output:
Regards:
Akhilesh Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.