全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2148
推到 Plurk!
推到 Facebook!

如何用delphi 批次compile 執行計畫檔(免用IDE介面)?

答題得分者是:cmf
flyup
資深會員


發表:280
回覆:508
積分:385
註冊:2002-04-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-06 22:37:40 IP:61.225.xxx.xxx 未訂閱
How to compile Delphi Projects with a Batch?     發表人 - flyup 於 2003/02/08 16:43:54
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-02-06 22:45:43 IP:61.70.xxx.xxx 未訂閱
f sir :    請問中文是什麼意司    
------
︿︿
flyup
資深會員


發表:280
回覆:508
積分:385
註冊:2002-04-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-02-06 22:52:05 IP:61.225.xxx.xxx 未訂閱
命令列模式:批次執行Delphi之Project檔。    如何寫批次檔??    
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-02-06 23:03:44 IP:61.70.xxx.xxx 未訂閱

Command-line compiler options

The IDE lets you set various options through the menus; the command-line compiler gives you access to these options using the slash (/) delimiter. You can also precede options with a hyphen (-) instead of a slash (/), but those options that start with a hyphen must be separated by blanks. For example, the following two command lines are equivalent and legal: DCC -I C:\DELPHI -DDEBUG SORTNAME -$R- -$U+ DCC /I C:\DELPHI /DDEBUG SORTNAME /$R- /$U+ The first command line uses hyphens with at least one blank separating options. The second uses slashes and no separation is needed. The following table lists the command-line options. In addition to the listed options, all single-letter compiler directives can be specified on the command line, as described in the next topic. Option Description /Aunit=alias Set unit alias /B Build all units /CC Console target /CG GUI target /Ddefines Define conditional symbol /Epath EXE directory /Faddress Find run-time error /GS Map file with segments /GP Map file with publics /GD Detailed map file /H Output hint messages /Ipaths Include directories /J Generate OBJ file /JP Generate C++ OBJ file /Kaddress Set image base address /LEpath Package BPL directory /LNpath Package DCP directory /LUpackage Use packages /M Make modified units /Npath DCU directory /Opaths Object directories /P Look for 8.3 file names also /Q Quiet compile /Rpaths Resource directories /TXext Target file extension /Upaths Unit directories /V Turbo Debugger debug information /VN Generate namespace debugging information in Giant format (used by C++Builder) /VR Generate RSM file for remote debugging /W Output warning messages /Z Disable implicit compilation If you type DCC32 alone at the command line, a list of command-line compiler options appears on your screen. 發表人 - cmf 於 2003/02/06 23:11:55
------
︿︿
flyup
資深會員


發表:280
回覆:508
積分:385
註冊:2002-04-15

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-02-06 23:40:21 IP:61.225.xxx.xxx 未訂閱
謝謝Cmf 大大 指教!    
flyup
資深會員


發表:280
回覆:508
積分:385
註冊:2002-04-15

發送簡訊給我
#6 引用回覆 回覆 發表時間:2003-02-08 16:40:13 IP:61.217.xxx.xxx 未訂閱
//完整批次檔範例    To build a delphi project without opening the IDE, use the following batch file.  ==================================================================  @Echo off  Echo ******* Building *******     if exist .cfg ren .cfg .cf~  if exist DCC32.cfg ren DCC32.cfg DCC32.cf~  rem # Make console target, unless overridden later  echo -M -CC >> DCC32.cfg  echo -$A+ >> DCC32.cfg  echo -$B- >> DCC32.cfg  echo -$C+ >> DCC32.cfg  echo -$D- >> DCC32.cfg  echo -$G+ >> DCC32.cfg  echo -$H+ >> DCC32.cfg  echo -$I+ >> DCC32.cfg  echo -$J- >> DCC32.cfg  echo -$L- >> DCC32.cfg  echo -$M- >> DCC32.cfg  echo -$O+ >> DCC32.cfg  echo -$P+ >> DCC32.cfg  echo -$Q- >> DCC32.cfg  echo -$R- >> DCC32.cfg  echo -$T- >> DCC32.cfg  echo -$U- >> DCC32.cfg  echo -$V+ >> DCC32.cfg  echo -$W- >> DCC32.cfg  echo -$X+ >> DCC32.cfg  echo -$Y2 >> DCC32.cfg  rem # ShowHints  echo -H >> DCC32.cfg  rem # ShowWarnings  echo -W >> DCC32.cfg  rem # ImageBase  echo -K$41000000 >> DCC32.cfg  rem # OutputDir  echo -E"%OpusTools%" >> DCC32.cfg  rem # OutputDir  echo -LN"%OpusTools%" >> DCC32.cfg  rem # Packages  echo -LUvcl50;vclx50 >> DCC32.cfg  rem # SearchPath  echo -U"" >> DCC32.cfg  rem # SearchPath  echo -R"" >> DCC32.cfg  rem # SearchPath  echo -O"" >> DCC32.cfg  rem # SearchPath  echo -I"" >> DCC32.cfg  rem # BuildAll  echo -B >> DCC32.cfg  rem # Min/MaxStackSize  echo -M16384,1048576 >> DCC32.cfg     "\Bin\DCC32.exe" .dpr %1 %2 %3 %4 %5 %6 %7 %8 %9  if errorlevel 1 goto GotError  goto Finish     rem # Got an error. Wait for user input  :GotError  echo Error!  pause     :Finish  del DCC32.cfg  if exist DCC32.cf~ ren DCC32.cf~ DCC32.cfg  if exist .cf~ ren .cf~ .cfg  Echo ******* Done. *******     :End  ==================================================================     Now just adjust the following things:  => Project file  Ex: Project1  => Delphi path  Ex: C:\Programme\Borland\Delphi5  => Search path for units  Ex: "C:\Dev\Lib;C:\Dev\Lib\Base"      發表人 - flyup 於 2003/02/08 16:42:32
系統時間:2024-05-13 19:31:00
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!