General information
Category:
Windows API functions
>Hi, all
>I have problem to open .txt file in notepad.
>this is a short code:
>
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
>lfile = "E:\MKTCONVERT\ExportStatus.txt"+chr(0)
>=ShellExecute(0,"open",lfile,"","",0)
>It 's not working
>When i replace txt file with .doc file it works.
>I tried this =ShellExecute(0,"open","notepad.exe","","",0) but it's not working
>I tried on different computer the same results.
>Thank you.
>Alex
Sorry Guys.
I found what happened.
Last parameter in shellexecute should not be 0. 0 hides application.
Alex
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only