Re: All DHCP Servers Info HELP!



Recieved bunch of errors. Below are the errors. I am probably doing it
wrong. Thanks again for your help, as you can tell I am new to
scripting.

C:\>dhcptest.bat

C:\>'==================================================
''' is not recognized as an internal or external command,
operable program or batch file.

C:\>' Run DHCP EXP
''' is not recognized as an internal or external command,
operable program or batch file.

C:\>'==================================================
''' is not recognized as an internal or external command,
operable program or batch file.

C:\>set oFs = createobject("scripting.filesystemobject")

C:\>set shell = createobject("wscript.shell")

C:\>set net = createobject("wscript.network")

C:\>'on error resume next
''on' is not recognized as an internal or external command,
operable program or batch file.

C:\>datafile = "\\megaslowtron\DHCP\DCs.txt"
'datafile' is not recognized as an internal or external command,
operable program or batch file.

C:\>logfile = "C:\DHCP\Ex-DHCP-Log.txt"
'logfile' is not recognized as an internal or external command,
operable program or batch file.

C:\>output = "C:\DHCP\"
'output' is not recognized as an internal or external command,
operable program or batch file.

C:\>set svrlist = oFs.opentextfile(datafile, 1)

C:\>set exlog = oFs.createtextfile(logfile)

C:\>dim svr, svrIP,ProcID
'dim' is not recognized as an internal or external command,
operable program or batch file.

C:\>'==================================================
''' is not recognized as an internal or external command,
operable program or batch file.

C:\>function ex()
'function' is not recognized as an internal or external command,
operable program or batch file.

C:\>Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate}!\\"

& was unexpected at this time.

C:\>& svr & "\root\cimv2:Win32_Process")

.



Relevant Pages

  • RE: Error in Event Viewer - Active in HAT
    ... unfortunately I get this error when I start the trace. ... 'tracelog.exe' is not recognized as an internal or external command, ... operable program or batch file. ...
    (microsoft.public.biztalk.general)
  • xcopy is not recognized as an internal or external command
    ... operable program or batch file. ... 'C:\xcopy' is not recognized as an internal or external command, ... Munging English.cfg ...
    (microsoft.public.windowsxp.general)
  • Re: Clock on pc time loss
    ... operable program or batch file. ... 'cmd' is not recognized as an internal or external command, ... The Windows Time service was stopped successfully. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Clock on pc time loss
    ... operable program or batch file. ... 'cmd' is not recognized as an internal or external command, ... The Windows Time service was stopped successfully. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Clock on pc time loss
    ... Time loss with a fresh battery will be very small (a few milliseconds ... Ken Blake - Microsoft MVP Windows: ... operable program or batch file. ... 'cmd' is not recognized as an internal or external command, ...
    (microsoft.public.windowsxp.help_and_support)