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


  1. Posts : 614
    Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
       #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 Computer


  2. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #2

    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 Computer


  3. Posts : 614
    Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #3

    Brink said:
    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 Computer


  4. Posts : 614
    Microsoft Windows 7 Ultimate 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #4

    I am going to conver these to .exe so i can put icons and such. :)Thanks man
      My Computer


  5. Posts : 72,052
    64-bit Windows 11 Pro for Workstations
       #5

    You're most welcome. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 22:52.
Find Us