Home > Back-end >  Command-line CMD Delphi code realization method
Command-line CMD Delphi code realization method

Time:10-03

Each Code god double festival happiness, because the last time to do the DLL registered installer so ask the Delphi Code implementation issues, this is ActiveX EXE registration problems, is the following command line statements, how to use Delphi to write?

CD C: \ Windows \ system32 enter
C: \ Windows \ Oceanable \ Tools \ EXE_OceComsever exe/regserver enter

The last step, thank you,,,,

. . . . .

CodePudding user response:

The following two ways are executable, you can choose one:

Shellexecute (HWND_DESKTOP, 'open', 'CMD', PChar (' XXXXX. Bat), nil, SW_HIDE);
Winexec (PansiChar (AnsiString (' XXXXX. Bat), SW_HIDE);

Mr. If it is multiple orders, you can into a BAT batch file, and then call execute the batch, of course, also can use this two ways directly executed (run) a single EXE or other executables,
  • Related