I'm trying to create a small console app that runs a batch file and sends a resulting text file via email. At this point, I'm trying to get the ShellExecute command to run and I always get
[tt]Error: Undeclared identifier: 'Handle'[/tt]
Here's the entire code:
What do I need to add so that Handle is not an undeclared identifier? I've never had an issue with this before, but I've never done a console app either.
Any ideas/suggestions?
Thanks!
Leslie
[tt]Error: Undeclared identifier: 'Handle'[/tt]
Here's the entire code:
Code:
[navy][i]// for automatic syntax highlighting see faq102-6487
[/i][/navy][b]program[/b] MVD_FTP;
[navy][i]{$APPTYPE CONSOLE}[/i][/navy]
[b]uses[/b]
Windows, SysUtils, ShellAPI;
[b]begin[/b]
ShellExecute(Handle, [teal]'open'[/teal], PChar([teal]'\\fileandprint\groups\InfoTech\FTP2DMV\Startdmv.bat'[/teal]), [b]nil[/b], [b]nil[/b], SW_SHOW);
[b]end[/b].
What do I need to add so that Handle is not an undeclared identifier? I've never had an issue with this before, but I've never done a console app either.
Any ideas/suggestions?
Thanks!
Leslie