Advertisement
Advertisement
| 08.10.2008 at 06:43AM PDT, ID: 23636109 |
|
[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: |
:: * This script require "Computers.txt" file on C: drive root from where it will pick computer names.
:: * Computers.txt file should be in following format
:: <ComputerName>:<Description>
:: Like:
:: MAILSRV:Lotus Domino Server
:: DBSRV:Oracle ERP Server
:: * Successful run will generate "CDReport.txt" file on C: drive root.
:: * Copy and paste following script in notepad and save it with any name having .bat extension.
:: *** SCRIPT START ***
@Echo Off
SETLOCAL
IF NOT EXIST C:\Computers.txt Goto ShowErr
FOR %%R IN (Computers.txt) Do IF %%~zR EQU 0 Goto ShowErr
IF EXIST C:\CDReport.txt DEL /F /Q C:\CDReport.txt
FOR /F "delims=: tokens=1-2" %%c IN (C:\Computers.txt) Do (
Echo Changing Description of: %%c to "%%d"
Echo Changing Description of: %%c to "%%d" >>C:\CDReport.txt
DSQuery Computer -name "%%c*" | DSMod Computer -desc "%%d"
)
Goto EndScript
:ShowErr
Echo "C:\Computers.txt" file does not exist or file is empty!
:EndScript
ENDLOCAL
:: *** SCRIPT END ***
Pause
|