P
P
Porto_b2020-04-28 17:10:49
Delphi
Porto_b, 2020-04-28 17:10:49

How does ShellExecute work, can't set working folder?

My main program starts program_1 using the ShellExecute method.

ShellExecute(Handle, 'open', 'control\Project1.exe', nil, nil, SW_HIDE);

Program_1, in turn, should open the .txt file. But she does not open it because it is not clear how to set the working folder in the method correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hemul GM, 2020-04-28
@Porto_b

shellexecute has so many options. Point to the method and see. I hope you can guess that Directory is the working directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question