The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Magnum on May 13, 2010, 03:08:24 AM

Title: Error_File_Not_Found
Post by: Magnum on May 13, 2010, 03:08:24 AM
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

Title: Re: Error_File_Not_Found
Post by: hutch-- on May 13, 2010, 04:24:33 AM
Does this file exist on you disk at this address ?

c:\WINDOWS\Explorer2.exe
Title: Re: Error_File_Not_Found
Post by: sinsi on May 13, 2010, 04:53:05 AM
More correctly, does "c:\WINDOWS\Explorer2.exemasm32" exist.
Title: Re: Error_File_Not_Found
Post by: KeepingRealBusy on May 13, 2010, 06:24:15 AM
I think you need a blank in front of "masm32". You need to separate the program name from the parameter.
Title: Re: Error_File_Not_Found
Post by: Magnum on May 13, 2010, 12:26:42 PM
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.