|
<< Click to Display Table of Contents >> Navigation: Telegram > 2018 > 04 > 26 > Telegram_2018-04-26T11 |
2018-04-26T11:05:32
Has anyone been able to shell out to run an EXE from within an Intraweb application? I'm trying to use Shell() from the ShellAPI unit.
2018-04-26T11:05:43
I get a Control error
2018-04-26T11:06:05
permissions, and if you are in a service there is no shell. Use CreateProcess instead.
2018-04-26T11:06:22
service, or IIS etc... there is no shell.
2018-04-26T11:06:29
ok, thanks so much
2018-04-26T11:06:31
Shell exists only for SA non service.
2018-04-26T11:07:07
I'll look up the CreateProcess and see if I can use that.
2018-04-26T11:48:07
When using CreateProcess(), if the EXE I am calling is in the same folder as the IW EXE, do I need to still specify the 3rd to last parameter identifying the path or can I send it a nil? I'm getting an access violation error at runtime. It compiles just fine. The error occurs on the CreateProcess line itself.
2018-04-26T11:48:54
its optional:
2018-04-26T11:48:55
type: link https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
2018-04-26T11:49:16
type: link https://stackoverflow.com/questions/26678429/how-to-call-createprocess-in-delphi
2018-04-26T11:49:54
type: link http://www.riptutorial.com/delphi/example/18340/createprocess
2018-04-26T11:55:25
winapis are a PITA