Run wineconsole in background

Hello everybody,

I'm making a script for running a .bat process on wineconsole, but I want that wineconsole doesn't show up when I call it from the script.

The script is named "reset" and it looks like this:

When I execute it, it will show up the wineconsole window on top, and that is what bothers me a lot. I want the process (wineconsole) to be run in the background.

I tried doing

But that didn't seem to help, wineconsole's window is still showing up.

Could anybody please help me?

Thank you very much :b:

#! /bin/bash

wineconsole z:/home/user/reset/IpSwap.bat >/dev/null 2>&1

Thanks for pitching in rdcwayx, I tried what you suggested, but it didn't make any change.

wineconsole stills shows up in front, and I have to manually minimize it, or close it after the command in wineconsole executes.

Any other ideas?

Thanks

I just realize wineconsole is a GUI software.

maybe you need -help to find any option to run it as command mode.