Contributions
How to use ShellExecute in DelphiScript?
I am trying to write my first DelphiScript Script: procedure initializeDatabaseForTesting; begin ShellExecute(0, nil, 'cmd.exe', 'sqlcmd -S mypc\express2014 -i C:\TestComplete\tests\restoredb.sql', nil, SW_HIDE); end; when i run it it asys "Undeclared identifier ShellExecute". in Delphi ShellExecute is deinfed in Shellapi, how to do "uses Shellapi" in Delphiscript? Thanks.1.4KViews0likes1Comment