Run batch file silently? (without command prompt window)

Hello,

I've got a couple of batch files, which I'd prefer to run silently i.e. without the cmd window that briefly appears. I've set shortcut buttons for them in DOpus. For example, the command for one of these buttons in the Advanced Command Editor is:

cd "C:\Users\Username\Location of batch files"
@async:"Batch file 1.bat" {filepath|noterm}

This will run them non-silently. Is there a simple way to launch these silently? With and/or without admin rights? I know of some external means to accomplish this like SilentCMD, using the Task Scheduler etc. but when I try launching these batch files from DOpus, the cmd prompt will always appear in any case. Perhaps there's a different command for it?

Thank you

@runmode:hide as the first line should do it.

1 Like

So simple... thank you!

Checked the help file, and it seems that Hotkeys for these buttons cannot be made system-wide?

DO 13 perhaps?

Hotkeys assigned to floating toolbars are automatically system-wide. You can create system-wide hotkeys that aren't attached to a button if you want. You could move the command logic to a user command and then reference that from both a button and a hotkey if you want to use both.

1 Like