|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: |
SETLOCAL ENABLEDELAYEDEXPANSION
Set Drives=c,d,e
Set LogFile=E:\VLCUninstall.log
Set Service=SAVService
for /f %%a in (computers16.txt) do (
Set LogStatus=
ECHO %%a
for %%d in (%Drives%) do if exist "\\%%a\%%d$" for /f "tokens=*" %%f in ('dir /s /ad /b "\\%%a\%%d$\vlc"') DO if exist "%%f\Uninstall.exe" (
Set FileFound=%%f\Uninstall.exe
Set LocalFile=!FileFound:\\%%a\=!
Set LocalFile=!LocalFile:$=:!
Set LogStatus=%%a : VLC Uninstall.exe found "!LocalFile!"
Set ServiceCounter=10
sc \\%%a stop %service%
Set ServiceOK=
for /l %%z in (1,1,10) do if not defined ServiceOK sc \\%%a query %service% | Find /i "State" | Find /i "STOPPED" & if not errorlevel 1 (Set ServiceOK=Done) else (Ping 127.0.0.1 -n 5 -w 1000 > Nul)
if not defined ServiceOK (
Set LogStatus=!LogStatus! : %service% did not stop
) Else (
Set LogStatus=!LogStatus! : %service% stopped
psexec \\%%a "!LocalFile!" /x /S /v/qn
if errorlevel 1 (
Set LogStatus=!LogStatus! : Error executing File "!LocalFile!"
) else (
Set LogStatus=!LogStatus! : File executed "!LocalFile!"
)
sc \\%%a start %service%
Set ServiceOK=
for /l %%z in (1,1,10) do if not defined ServiceOK sc \\%%a query %service% | Find /i "State" | Find /i "RUNNING" & if not errorlevel 1 (Set ServiceOK=Done) else (Ping 127.0.0.1 -n 5 -w 1000 > Nul)
if not defined ServiceOK (
Set LogStatus=!LogStatus! : %service% did not start
) Else (
Set LogStatus=!LogStatus! : %service% running
)
)
)
if not defined LogStatus Set LogStatus=%%a : VLC Uninstall.exe not found
ECHO !LogStatus!>>%LogFile%"
)
|
Advertisement
| Hall of Fame |