Delphi中有两个专门用于读取命令行参数的变量:   
Paramcount-->用于返回命令行参数的个数
Paramstr数组-->用于返回指定的命令行参数
    
示例代码:
showmessage('命令行参数个数为:'+inttostr(paramcount));
showmessage('第1个命令行参数为:'+paramstr(1));
showmessage('应用程序名称为:'+paramstr(0));
Paramcount-->用于返回命令行参数的个数
Paramstr数组-->用于返回指定的命令行参数
示例代码:
showmessage('命令行参数个数为:'+inttostr(paramcount));
showmessage('第1个命令行参数为:'+paramstr(1));
showmessage('应用程序名称为:'+paramstr(0));
 
                     
                    
                 
                    
                 
 
         
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号