R.Wieser
2024-04-10 08:08:11 UTC
Hello all,
On XPsp3:
I'm trying to use Kernel32's "CreateProcess" to run executable stuff, and
have a problem : I'm only providing the commandline (lpApplicationName is
NULL), and although it works well enough for an executable (and a .BAT file,
rather unexpected), it balks when I supply it a .VBS file.
OK, that is to be expected, as a .VBS file isn't an application (but why
than is a .BAT file accepted? The application for it is CMD.EXE).
So, I use Kernel32's "FindExecutable" to find the application. And that
works. For the above .VBS file "wscript.exe" is returned (with its full
path).
... one problem though : In the registry I've added some of the "//xxx"
arguments, and those do not come back with it. Nor is the "ScriptEngine"
keys value returned (to indicate either a .VBS or .JS script)
And not including such information in my CreateProcess call creates
problems. :-(
Question:
What DLL methods are available to retrieve such information ?
Regards,
Rudy Wieser
On XPsp3:
I'm trying to use Kernel32's "CreateProcess" to run executable stuff, and
have a problem : I'm only providing the commandline (lpApplicationName is
NULL), and although it works well enough for an executable (and a .BAT file,
rather unexpected), it balks when I supply it a .VBS file.
OK, that is to be expected, as a .VBS file isn't an application (but why
than is a .BAT file accepted? The application for it is CMD.EXE).
So, I use Kernel32's "FindExecutable" to find the application. And that
works. For the above .VBS file "wscript.exe" is returned (with its full
path).
... one problem though : In the registry I've added some of the "//xxx"
arguments, and those do not come back with it. Nor is the "ScriptEngine"
keys value returned (to indicate either a .VBS or .JS script)
And not including such information in my CreateProcess call creates
problems. :-(
Question:
What DLL methods are available to retrieve such information ?
Regards,
Rudy Wieser