Page 1 of 1

Open a Folder

Posted: Wed Nov 14, 2012 1:27 pm
by MarcoBoschi
Dear friends
using this command I Open a folder

SHELLEXECUTE( 0 , 0 , cFolder , 0 , 0 , 1 )

where cFolder contains a name of a folder i.e. "c:\myprogram\images"


How can I close it?

bye
marco

Re: Open a Folder

Posted: Thu Nov 15, 2012 2:34 pm
by PeterHarmes
If you know the name of the window, use this:

SendMessage( FindWindow( 0, cWindowName, WM_CLOSE )

Hope this helps.

Pete

Re: Open a Folder

Posted: Fri Nov 16, 2012 11:00 am
by MarcoBoschi
Ok
Thanks