1. system() in Win32 without console window
- Posted by Andy Kurnia <akur at GAMERZ.NET> Mar 02, 1998
- 733 views
How to - delete a file (del) - rename a file (ren) - move a file/directory (move) - copy one or more files (copy) - make a directory (md) - change current directory (cd) - change current drive (x:) - remove a directory (rd) - and do other everyday MS-DOS commands from a Win32 program (in Euphoria 2.0 beta) withOUT having to get a console window as a result of system()? I can't think of a better way than doing each in inlined assembly poked to somewhere etc... but wait, isn't this unsafe under Win32? If it is, I don't exactly know how to make each assembly code, etc. (Mainly because I want to have the routines support long file names.) Can anyone help? I hate the flickering console window... (I need to call some dlls so I need it to be in win32... while Euphoria 2.0 alpha gave me *one* console window for the entire process, Euphoria 2.0 beta seems to give me one console window per system(), which closes automatically after each call, which causes flickers, which is annoying.)
2. Re: system() in Win32 without console window
- Posted by Robert Craig <rds at EMAIL.MSN.COM> Mar 01, 1998
- 737 views
- Last edited Mar 02, 1998
> Can anyone help? I hate the flickering console > window... (I need to call > some dlls so I need it to be in win32... > while Euphoria 2.0 alpha gave me > *one* console window for the entire process, > Euphoria 2.0 beta seems to > give me one console window per system(), > which closes automatically after > each call, which causes flickers, which is annoying.) Yes, I know what you mean. Euphoria is not explicitly asking for a console window, but system() runs command.com which brings up a console window. Most of those operations, like delete a file, etc. can be done by calling a WIN32 API C routine, such as DeleteFile(). Regards, Rob Craig Rapid Deployment Software
3. Re: system() in Win32 without console window
- Posted by Andy Kurnia <akur at GAMERZ.NET> Mar 02, 1998
- 756 views
Robert Craig wrote: >Most of those operations, like delete a file, etc. can >be done by calling a WIN32 API C routine, such as >DeleteFile(). Hmm, how's the syntax of DeleteFile? How do I import it to Euphoria? How's the syntax of other related routines? How to start a win32 app without having to say something like system("start calc", 2) which will bring up the temporary console window for "start"?