VB生成的EXE文件如何接受参数?

解决方案 »

  1.   

    直接用全局常量Command
    比如
    调用 aaa.exe debug
    那么command="debug"
      

  2.   

    Command就行了private sub form_load()
        if (command<>"test") then
            msgbox "您用了正确的参数运行的程序"
        else
            end
        end if
    end sub
      

  3.   

    Command()函数返回程序参数,字符型,没有则返回""。