JJ,
> Could you provide the exact detail on how the file is executed
> and what files are involved?
At some point I created a test script containing the below :
- - - -
set oSH = CreateObject("wscript.shell")
call oSH.Run(""""& "hello.vbs.lnk" &"""",1,true)
- - - -
the "hello.vbs.lnk" is ofcourse a shortcut file which target is a simple
"hello.vbs" script (duh :-) ) which contains nothing more than
- - - -
msgbox "hello world!"
- - - -
Later I changed the target of that shortcut to a simple GUI executable, but
that didn't stop the error from occuring
> I want to reproduce the problem in my system.
In the other thread in
microsoft.public.windowsxp.general
Re: How to add a "Shutdown" folder (the opposite of the "startup" folder) ?
I just mentioned that I tested the ShellExecuteEx function with the
SEE_MASK_NOCLOSEPROCESS flag, and it does give the same results : When a
shortcut is provided (regardless of its target) the process field does not
get filled in. No error occurs though (even though GetLastError does seem
to hold a usable error value ...)
Regards,
Rudy Wieser