708
edits
No edit summary |
No edit summary |
||
Line 220: | Line 220: | ||
:For some reason, that idea inspired me so I wrote some test code. http://rossy.oni2.net/files/ConsoleTest.zip :D When it recieves no arguments, the test program checks if it has been run from a console window, if not it creates its own cmd.exe and runs itself. I don't know what would happen on MacOSX, but i think the Process.Start call will fail and cause the program to display a message box instead. | :For some reason, that idea inspired me so I wrote some test code. http://rossy.oni2.net/files/ConsoleTest.zip :D When it recieves no arguments, the test program checks if it has been run from a console window, if not it creates its own cmd.exe and runs itself. I don't know what would happen on MacOSX, but i think the Process.Start call will fail and cause the program to display a message box instead. | ||
::No thanks, I'd rather not use PInvoke in a .NET program that needs to run on another OS :). For now I changed OniSplit so if it's started without arguments (like it happens if it's double clicked) it displays the help and wait for a key to be pressed. [[User:Neo|Neo]] | |||
---- | ---- |
edits