Run Batch Command Silently
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
mohit9garg
8 - Asteroid
‎03-15-2021
07:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, I have set up a After run batch command to delete .bak files in Events. Like below.
However I am unable to run it silently i-e appearing black cmd window.
Can someone advice me how can I run it in invisible mode.
Thanks,
Mohit
Labels:
- Labels:
- Best Practices
6 REPLIES 6
21 - Polaris
‎03-15-2021
08:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try to put @echo off at begging of your bat file?
@echo off prevents the prompt and contents of the batch file from being displayed, so that only the output is visible.
The @ makes the output of the echo off command hidden as well.
‎03-15-2021
08:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
21 - Polaris
‎03-15-2021
09:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎03-15-2021
09:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Qiu sorry..no luck
21 - Polaris
‎03-15-2021
09:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
JokeFun
8 - Asteroid
‎12-10-2021
01:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What's the use of /s /q /f in your bat file?
