Re: regarding spawnProcess and parameters in Windows

2013-12-16 Thread Hugo Florentino
On Mon, 16 Dec 2013 05:15:24 -0500, Hugo Florentino wrote: Now, suppose I have two versions of the application (myapp32.exe and myapp64.exe), and I want my launcher to launch either, based on the architecture it detected from the OS being run on. What could I do in this case, which is actually w

Re: regarding spawnProcess and parameters in Windows

2013-12-16 Thread Hugo Florentino
On Mon, 16 Dec 2013 18:59:52 +0900, Mike Parker wrote: On 12/16/2013 6:33 PM, Hugo Florentino wrote: ... Why does the console window appear and how can I prevent this? This is how Windows works. There are a couple of ways to eliminate the console. One is to use WinMain instead of main. That re

Re: regarding spawnProcess and parameters in Windows

2013-12-16 Thread Hugo Florentino
On Mon, 16 Dec 2013 04:33:53 -0500, Hugo Florentino wrote: ... Why does the console window appear and how can I prevent this? I forgot to mention that I tried using "int main ()" and even "void main()" and removing returns, but the console window keeps appearing, which is rather annoying for

Re: regarding spawnProcess and parameters in Windows

2013-12-16 Thread Mike Parker
On 12/16/2013 6:33 PM, Hugo Florentino wrote: On Mon, 16 Dec 2013 02:04:10 +0100, Danny Arends wrote: However, something is bothering me: when running the launcher, it opens a console temporarily before launching the other process (even when I am not using std.stdio) and I cannot get rid of t

Re: regarding spawnProcess and parameters in Windows

2013-12-16 Thread Hugo Florentino
On Mon, 16 Dec 2013 02:04:10 +0100, Danny Arends wrote: ... So I think this should work: spawnProcess([appexe,format("/INI=%s",appini)], ["",""],Config.suppressConsole); Hmm... that did not work either, it complained that the parameter was not correct. Actually, the syntax I was using should

Re: regarding spawnProcess and parameters in Windows

2013-12-15 Thread Danny Arends
On Monday, 16 December 2013 at 00:59:51 UTC, Danny Arends wrote: On Sunday, 15 December 2013 at 23:14:45 UTC, Hugo Florentino wrote: Hello, I am trying to do a small launcher for a Windows application which (in order to be portable) requires a specific parameter, and I am getting this error w

Re: regarding spawnProcess and parameters in Windows

2013-12-15 Thread Danny Arends
On Sunday, 15 December 2013 at 23:14:45 UTC, Hugo Florentino wrote: Hello, I am trying to do a small launcher for a Windows application which (in order to be portable) requires a specific parameter, and I am getting this error when I try to run it in Windows 7 SP1: "std.process.ProcessExcep

regarding spawnProcess and parameters in Windows

2013-12-15 Thread Hugo Florentino
Hello, I am trying to do a small launcher for a Windows application which (in order to be portable) requires a specific parameter, and I am getting this error when I try to run it in Windows 7 SP1: "std.process.ProcessException@std\process.d(518): Failed to spawn new process (Access denied.)