Close programs batch file




















Add a comment. Active Oldest Votes. It should close automatically, if it doesn't it means that it is stuck on the first command. As a work around you can try using start "" tncserver. Bali C Bali C The "" is used to stop a problem with start , if the program you are running has spaces it will interpret the first string as the title for the app.

The "" gives it a blank title so the rest will work as expected. Your code is absolutely fine. It just needs "exit 0" for a cleaner exit. GitaarLAB Jenna Leaf Jenna Leaf 1, 18 18 silver badges 24 24 bronze badges. Community Bot 1 1 1 silver badge.

Loran Loran 1 1 silver badge 8 8 bronze badges. Luka Urushadze Luka Urushadze 5 4 4 bronze badges. Alex Waygood 4, 3 3 gold badges 10 10 silver badges 38 38 bronze badges. Eleventeen Eleventeen 1. Max Lorens Max Lorens 1 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. I found a way to get rid of the messagebox, so the automated enter isn't needed anymore. I still would like to know how you can exit a specific file with batch code.

Which other solution did you try? In what way did that not work for your case? Couldn't get code in the comment.

Updating the question is the proper way to add details. Add a comment. Active Oldest Votes. I can then just do this to kill it. CreateObject "WScript.

Shell" ; WshShell. SendKeys WScript. Arguments 0 ;. Gerhard Gerhard Thanks, the code for the automated 'enter' works well. I still can't get the taskkill to work, but this is probably my fault. When I put the taskkill behind the code for the enter, the enter code won't work anymore. DennisvdEijnde perhaps put the taskkill in te very beginning, before the if statement.

Sign up or log in Sign up using Google. Thread starter Synomenon Start date Sep 21, Sidebar Sidebar. Forums Software Windows. JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding. Previous Next. Synomenon Lifer.

Dec 25, 10, 6 This is for World of Warcraft and Logitech Setpoint. Thanks for any help. Jan 23, 14, 7 This example shows me using wordpad and notepad since I don't have your exact programs. First, put the executables into the script, logitech setpoint replacing wordpad, wow replacing notepad. Second, the dos window will remain open while playing wow, hopefully this won't have any impact, when wow closes the dos window should kick off setpoint again.

Let me know if it works. Aug 28, 52, RT Member. Sep 20, 38 0 0. I discovered a little app the other day, that may be useful in this situation.

It's called runhide. It's a command line app that can launch other command line apps and batch files silently and without a DOSbox appearing. I've been using it to hide an annoying dosbox popup I had whenever my PVR changed channels on my cable box and it's worked like a charm.

I'm not sure whether it could be integrated into Skace's batch while retaining all the functionality of the batch, but if it could be applied it would run the batch without a DOSbox appearing at all, if that's a consideration. At least that's true for XP, as I put together a small batch using long file names only this morning, coincidentally, and it worked ok. Originally posted by: rh71 no spaces in batch files, correct? Thanks for all the advise guys!

I won't be able to try any of it later, but how would I use RT's tool with the batch file. It doesn't matter to me whether a DOS window is open, but if it does interfere with the game, then I'd like to try the batch file with RT's tool.

Thanks again! Try the batch file first, if it does exactly what you want it to do, then worry about hiding it with RT's tool. BTW, you will be using the batch file as your WoW shortcut.

So create the batch file somewhere, make a shortcut to the desktop and then associate that shortcut with the WoW Icon and run that to start WoW from now on. If the shortcut to the batch works to your liking, download RunHide and throw it in your system32 folder.



0コメント

  • 1000 / 1000