1. system() in Win32 without console window

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.)

new topic     » topic index » view message » categorize

2. Re: system() in Win32 without console window

> 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

new topic     » goto parent     » topic index » view message » categorize

3. Re: system() in Win32 without console window

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"?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu