| |

VerySource

 Forgot password?
 Register
Search
View: 875|Reply: 1

shelexecute problem with the fourth parameter when using Mysql

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-6 19:50:01
| Show all posts |Read mode
ShellExecute (Application.Handle, 'open', PChar ('mysql.exe'), PCHAR ('mysql.exe -uroot -ppass meyle <d:\product\data.sql), PChar (' C:\Program Files\MySQL\MySQL Server 5.0\bin ') , SW_SHOWNORMAL);

or

ShellExecute (Application.Handle, 'open', PChar ('C:\Program Files\MySQL\MySQL Server 5.0\bin\mysql.exe'), PCHAR ('mysql.exe -uroot -ppass meyle <d:\product\data.sql), nil, SW_SHOWNORMAL);

Why can't I pass parameters?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-22 09:36:01
| Show all posts
Just introduced the fourth parameter of shellexecute on MSDN

Address of a null-terminated string that contains the application parameters. The parameters must be separated by spaces. If the lpFile member specifies a document file, lpParameters should be NULL.

Presumably, if the third parameter of a file parameter group is to be passed, the fourth parameter must be nil
I wonder if this is the case, my English level is limited
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list