I am getting Error_File_Not_Found with this.
I know it's something simple that I missed
.data
szVerbOpen db "open",0
szProgram db "c:\WINDOWS\Explorer2.exe",0
szString db "masm32",0
.data?
hInstance dd ?
szTempBuf db MAX_PATH dup(?)
.CODE
Internal_Notes db "A.K. 2010"
start:
invoke GetModuleHandle,NULL
mov hInstance,eax
invoke lstrcpy,addr szTempBuf,addr szProgram
invoke lstrcat,addr szTempBuf,addr szString
invoke ShellExecute,0,addr szVerbOpen,addr szTempBuf,0,0,SW_NORMAL
invoke ExitProcess,0
end start
Does this file exist on you disk at this address ?
c:\WINDOWS\Explorer2.exe
More correctly, does "c:\WINDOWS\Explorer2.exemasm32" exist.
I think you need a blank in front of "masm32". You need to separate the program name from the parameter.
Quote from: sinsi on May 13, 2010, 04:53:05 AM
More correctly, does "c:\WINDOWS\Explorer2.exemasm32" exist.
You are right. Did not need masm32.