News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Error_File_Not_Found

Started by Magnum, May 13, 2010, 03:08:24 AM

Previous topic - Next topic

Magnum

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

Have a great day,
                         Andy

hutch--

Does this file exist on you disk at this address ?

c:\WINDOWS\Explorer2.exe
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

sinsi

More correctly, does "c:\WINDOWS\Explorer2.exemasm32" exist.
Light travels faster than sound, that's why some people seem bright until you hear them.

KeepingRealBusy

I think you need a blank in front of "masm32". You need to separate the program name from the parameter.

Magnum

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.

Have a great day,
                         Andy