Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I am trying to run a bat file on startup (running Windows 8.1) that will change the permission of the temp folder and then run dropbox. The bat file executes properly on startup and does what I want but the cmd window appears and just stays there with the commands showing. I have to manually close the window for it to go away but other than that it works fine.

So is there a way for me to suppress the window. Here is the batch file code:

echo y| CACLS "C:\Users\Name\AppData\Local\Temp" /grant Everyone:F
share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tog, soandos, Kevin Panko, harrymc windows May 23 '14 at 7:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can do it with VBScript. This will help you. Also this question is possible duplicate of this – Jet May 20 '14 at 17:26
@Richard Try Jet's suggestion. Here is a second link for a good VBS example. – nixda May 20 '14 at 17:29
So much duplicates ?.. – Jet May 20 '14 at 17:32
@techie007 I edited my bat commands to have a start in front of the dropbox. So now it reads start "C:\Users\Name\AppData\Roaming\Dropbox\bin\Dropbox.exe" but I'm still getting a persistent cmd window that I have to manually close. Like I said, I don't care if it shows up I just want it to close automatically when it's done. – Richard May 20 '14 at 17:46

1 Answer 1

up vote 1 down vote accepted

Create a shortcut to the batch file and put this into your startup items. Edit the properties of the shortcut to run minimized...

You can't suppress the window entirely.

share|improve this answer
this does not really help me as it just minimizes the window; I need it to close, I don't care if the window shows up for a few seconds as long as it closes it self after finishing. This minimization step just has it minimized on my taskbar until I manually pull it up and close it myself. – Richard May 20 '14 at 17:26
You can suppress the window entirely... – Jet May 20 '14 at 17:28
Your 'exit' command should close the window when the script completes so something is amiss somewhere... – Big Chris May 20 '14 at 17:54
@Jet - how does this work unless it's a scheduled task or group policy? 'You learn something new every day' – Big Chris May 20 '14 at 17:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.