popsoft.com.hk
http://forum.infocenter.com.hk/phpbb3/

To run bat file in SB M-7-C Daily Batch Processing
http://forum.infocenter.com.hk/phpbb3/viewtopic.php?f=37&t=538
1 頁 (共 1 頁)

發表人:  Thomas [ 15 5月 2009 12:48 ]
文章主題 :  To run bat file in SB M-7-C Daily Batch Processing

In SB M7C Daily Batch Processing (Sbbatch.txt), SB can call external batch file when the
sbbatch.txt is working in progressive.
For example the user wants to copy a report in M74 stock holder list to his PC as backup file.
Then you can modify the sbbatch.txt to call the external batch file to full fill their
requirements.
1. Create a bat file named copy.bat, the file can be created the same location as sbbatch.txt.
Inside the copy.bat you can type: Copy M74.txt c:\SBReport
The M74.txt output file will copy to the C drive SBReport folder
2. Modify the sbbatch.txt to add few the lines as follow:
*To define output device name as M74.txt
;M74.txt,Y,
*Generate the report in M74 stock holder list
74112,,,,,,000Y
*Run external batch file
!copy.bat
3. We can define the output device name as DailyRpt_yyyymmdd in Sbbatch.txt
;DailyRpt%C%Y%M%D.txt,y,
74112,,,,,,000Y
The description of %C,%Y,%M,%D :
%C = Century of Tran. Date
%Y = Year of Tran. Date
%M = Month of Tran. Date
%D = Day of Tran. Date

e.g. Tran. Date is 17 May 2009, the following output device name can be
\%M%DRPT => \0517RPT
%C%Y%M%D => 20090517
The Daily Batch Processing (Sbbatch.txt), help user to reduce the operations work load in
daily base. Different users have different requirements, we have to study it case by case.

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/