FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Restart a service

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
cmatte
Newbie


Joined: 19 Aug 2007
Posts: 10

PostPosted: Sat Feb 20, 2010 6:26 pm    Post subject: Restart a service Reply with quote

Hi,
I need to create a script which is able to restart a windows service.
I have UAC enabled so there are permissions messes involved.

I tried a 100% simple
[code:1]var wsh = new ActiveXObject('WScript.Shell');
wsh.Run("C:\restart_MyService.cmd");[/code:1]

with, in the file, the code:
[code:1]@echo off
net stop "My Service"
net start "My Service"
pause[/code:1]
but nothing happens when I click on it....

I tried launching the clicker as ADMIN but nothing changes.
Ideas :cry: ?
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group