Site Logo

popsoft.com.hk

有關DacEasy & POP 系統
 
現在的時間是 20 10月 2018 11:17

所有顯示的時間為 UTC + 8 小時




發表新文章 回覆主題  [ 1 篇文章 ] 
發表人 內容
 文章主題 : To run bat file in SB M-7-C Daily Batch Processing
文章發表於 : 15 5月 2009 12:48 
離線

註冊時間: 24 9月 2008 10:58
文章: 71
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 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
cron
Powered by phpBB, Almsamim WYSIWYG © 2000, 2002, 2005, 2007 phpBB Group
正體中文語系由 竹貓星球 維護製作