1.

Solve : need help with batch file :(?

Answer»

I am creating a BATCH file and I need to shutdown a windows SERVICE in it and basically wait for the service to stop before I do anything else... I don't even know where to BEGIN

any help would be appreciated..

thanks.In the WINDOWS\System32 directory there is a file named SC.EXE

Use this to shutdown services.


Help for Sc.exe
http://www.lumension.com/contentKnow.jsp?id=975&metadataId=975

Example of batch file using SC (service controller):

@echo off
cls
echo SC Example
sc \\COMPUTERNAME query sxd

^^^^ Note: The example I wrote above will not WORK! ^^^^



Discussion

No Comment Found