Getting Data In

Batch File

cassie90
New Member

Hi,

Does anyone of you know how to run a batch file in the background. meaning I just want it to be invisible not minimized or taskbar or anything. I hope to get a reply soon asap. Thanks.

Tags (2)
0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi cassie90

are you talking about windows batch jobs? they can be started as scheduled jobs and then they are not visible, if you configure the job this way.

hope this helps

regards

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi cassie90

are you talking about windows batch jobs? they can be started as scheduled jobs and then they are not visible, if you configure the job this way.

hope this helps

regards

MuS
SplunkTrust
SplunkTrust

if you double click a bat file you get either a minimized windows in the taskbar or the window itself. try writing another bat locks like this


@echo off

start "window1" /min cmd.exe /c batch1.cmd

start "window2" /min cmd.exe /c batch2.cmd

start "window3" /min cmd.exe /c batch3.cmd

start "window4" /min cmd.exe /c batch4.cmd

echo four minimized background command prompts running four scripts



and run this new one, this will start new batches in background.

0 Karma

cassie90
New Member

erm. the at command runs only on command prompt right? But I want it to run on the background once I double click the batch file. is that possible?

0 Karma

MuS
SplunkTrust
SplunkTrust

you can spend some kudos and make the questions disapear from 'unanswered' answers by clicking the 'correct' button 🙂

0 Karma

cassie90
New Member

oh. all right. I shall go try it out. Thank you so much (:

0 Karma

MuS
SplunkTrust
SplunkTrust

http://support.microsoft.com/kb/313565/EN-US
if you use the /interactive option then you get a window for this job. if you don't use the option, well you will not see a thing 😉

0 Karma

cassie90
New Member

yeap I'm talking about the windows batch jobs. you mean the scheduled task in windows? May I know how to make it invisible by doing the scheduled task?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...