Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: simple bat file that stops and starts a service on double click?

08 Mar 2013   #1
Skylais

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
simple bat file that stops and starts a service on double click?

i want to be able to start a service or stop it by simply double clicking a bat file. Does anyone know how to do such a thing?


My System SpecsSystem Spec
.
08 Mar 2013   #2
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello Skylais,

You could use OPTION TWO or OPTION THREE in the tutorial below to add the command in a bat file to run when you like. Be sure to use Run as administrator when running the .bat file.

Services - Start or Disable

Hope this helps,
Shawn
My System SpecsSystem Spec
08 Mar 2013   #3
Skylais

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello Skylais,

You could use OPTION TWO or OPTION THREE in the tutorial below to add the command in a bat file to run when you like. Be sure to use Run as administrator when running the .bat file.

Services - Start or Disable

Hope this helps,
Shawn
Wow thanks that runs smooth and perfectly how i wanted. Really easy too Thanks
Reason being, is when me and my friend switch between these 2 games we play. Well one of them uses a vpn software and messes with the ip address settings in the other game. So we have to stop/start the service of the vpn software switching between the two games and it gets annoying. We lazy
Thanks shawn
My System SpecsSystem Spec
.

08 Mar 2013   #4
Skylais

Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

I am going to conver these to .exe so i can put icons and such. Thanks man
My System SpecsSystem Spec
08 Mar 2013   #5
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

You're most welcome.
My System SpecsSystem Spec
Reply

 simple bat file that stops and starts a service on double click?




Thread Tools




Similar help and support threads
Thread Forum
automatic delete file when double-click
hi all... thanks for view this thread... i really need anyone here to solve my problem.. the problem is when i double click any file to open it, it always change to delete the file and something like this come out.."are you sure you want to move this file to Recycle Bin?" and it come out...
General Discussion
Change double click ACTION - not merely the file association
I'll attempt to be as clear as possible when explaining my goal - a goal I was able to achieve with Windows XP, but have yet to learn the Windows 7 way. I have a file named whatever.rar. If I double click on the file, WinRAR opens the file and shows me what it contains. This is not the action I...
Customization
Double click Excel file may not work
I'm using Windows 7 and Office 2007 and Excel is having this issue. When I double click a particular Excel spreadsheet I get the following error: Excel cannot access 'FILE.xls'. The document may be read-only or encrypted. I click OK. Then : 'FILE.xls' cannot be accessed. The file may be...
Microsoft Office
Many Multimedia Class Scheduler Service stops and starts repeatedly
I'm wondering why the Multimedia Class Scheduler Service keeps stopping and re-starting throughout the day, about every 10-15 minutes. If it should not be doing this, of course I would like to be able to configure my system to stop cycling this service. I was looking at my event logs for an...
General Discussion
right click on file, open file not work but double click does?????
Just rebooted and nos when i rt click on file icon on the desktop nothing BUT when double click file opens???
Performance & Maintenance
Double Click No Longer Starts Programs
The only way I seem to be able to launch a program is to right click and select "Run as Administrator". This odd behavior only happens on a system I have designated as my media server. It is a P4 3.06Ghz w/4 GB Memory, Hyper Threading, and ~ 4 TB of storage. I am running Win7 Pro 32 bit. I've...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 00:53.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App