一个关于用DELPHI开发TELNET程序的问题(100分)

  • 主题发起人 主题发起人 同路人
  • 开始时间 开始时间

同路人

Unregistered / Unconfirmed
GUEST, unregistred user!
我需要在我的程序中嵌入一个TELNET程序,引用外部程序我也试过,
但不知道怎样给TELNET命令加参数,于是想自己开发一个能引入参数
(包括远程主机,用户名及口令)的程序,但是我对DELPHI的网络开发没有
经验,在此请教各位高手.
 
它本身就有引入参数功能,
你要在程序中取得参数。

RUN--parameters可以设置参数。
 
能否讲的具体一点,我现在的资料非常少.非常感谢!
 
Choose Run|Parameters to open the Run Parameters dialog box.
Use this dialog to pass command-line parameters to your application when you run
it (just as if you were starting the application from the Program Manager File|Run menu),
specify a host executable for testing a DLL (Windows) or shared object (Linux),
run your program on a remote machine, or load any executable into the debugger.
Click OK to save the settings you抳e entered and close the Run Parameters dialog.

Local tab

Use this page to run and debug projects.

Host application

Enter the path to an executable file. (Click Browse to bring up a file-selection dialog.)
If the current project is a DLL (Windows) or a shared object (Linux), use this edit box to specify a host application that calls it.
You can also enter the name of any executable that you want to run in the debugger. Then press Load to load the executable.
The executable will be paused at its entry point. If there is no debug information at the entry point, the CPU window will be opened.
Select Run|Run (F9) to run the executable.

If you want to run the project that you have open, there is no need to enter anything in the Host Application edit box.

Parameters

Enter the command-line arguments you want to pass to your application (or the Host application) when it starts. You can use the drop-down button to choose from a history of previously specified parameters.
Do not enter the application name in this edit box.
Working Directory
Enter the name of the directory to use for the debugging process. By default, this is the same directory as the one containing the executable of your application.

Execute Startup Code on Load

If this option is checked, when you start debugging, startup code is executed. (The startup code is code that is automatically generated when you create a project.
It is executed before reaching the program's main entry point.)

Remote tab

Use this page to run an application on a remote computer.

Remote path

Enter the path to an .EXE file as the remote host will see it.
If you are debugging a DLL, specify an application that calls the DLL.
You can also enter the name of any executable that you want to run in the debugger.
Then press Load to load the executable. The executable will be paused at its entry point. If there is no debug information at the entry point, the CPU window is opened. Select Run|Run (or press F9) to run the executable.

Remote host

Enter the name or IP address of the computer on which you want to run the application.
The remote host must have the debug server running on it.

Parameters

Enter the parameters you want to pass to the application when it starts.
You can use these parameters with the ParamCount and ParamStr() functions.
Do not enter the application name in this edit box.

Debug project on remote machine

Check to enable remote debugging.

Buttons

The Load button loads the application, meaning that the process is loaded and stopped. The OK button accepts the settings, but does not load the application. On the Remote page, the Load button loads a source view of the remote application, but does not load the project (that is, the Project menus do not reflect that project).
 
我需要的是完整的TELNET的带参数用法,比如直接输入TELNET HOSTNAME,USERID,PASSWORD
就直接进入主机,不需要在连接后在输入USERID,PASSWORD等信息,楼上留的好象是DELPHI中
的帮助.
 
后退
顶部