我在命令行下编译一个pas文件, 默认生成的应用程序名即为pas文件名. 
例如dcc32 Test.pas 会生成 Test.exe.
如果我想通过dcc32的编译参数来指定生成应用程序的名称(例如Test.pas --> TestEX.exe ), 该如何去作 ? 请Delphi高手指教.

解决方案 »

  1.   

    参数
    -A<unit>=<alias> = Set unit alias  -LU<package> = Use package
     -B = Build all units               -M = Make modified units
     -CC = Console target               -N<path> = DCU output directory
     -CG = GUI target                   -O<paths> = Object directories
     -D<syms> = Define conditionals     -P = look for 8.3 file names also
     -E<path> = EXE output directory    -Q = Quiet compile
     -F<offset> = Find error            -R<paths> = Resource directories
     -GD = Detailed map file            -U<paths> = Unit directories
     -GP = Map file with publics        -V = Debug information in EXE
     -GS = Map file with segments       -VR = Generate remote debug (RSM)
     -H = Output hint messages          -W = Output warning messages
     -I<paths> = Include directories    -Z = Output 'never build' DCPs
     -J = Generate .obj file            -$<dir> = Compiler directive
     -JP = Generate C++ .obj file       --help = Show this help screen
     -K<addr> = Set image base addr     --version = Show name and version
    ompiler switches: -$<letter><state> (defaults are shown below)
     A8  Aligned record fields           P+  Open string params
     B-  Full boolean Evaluation         Q-  Integer overflow checking
     C+  Evaluate assertions at runtime  R-  Range checking
     D+  Debug information               T-  Typed @ operator
     G+  Use imported data references    U-  Pentium(tm)-safe divide
     H+  Use long strings by default     V+  Strict var-strings
     I+  I/O checking                    W-  Generate stack frames
     J-  Writeable structured consts     X+  Extended syntax
     L+  Local debug symbols             Y+  Symbol reference info
     M-  Runtime type info               Z1  Minimum size of enum types
     O+  Optimization
      

  2.   

    呵呵, 现在我就是通过批处理脚本来做的, 看dcc32的参数也没什么说明, BCB的bcc32编译器就有这个功能, 难道dcc32反而没有 ?