sc script

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: allan (anonymous_at_discussions.microsoft.com)
Date: 05/07/04


Date: Fri, 7 May 2004 12:39:30 -0700

Hi,

I hope someone can figure this out - I try to run the
following script:
for /F %%i in (complist.txt) do (
        sc "%%i" stop mssearch sc "%%i" config mssearch
start= disabled
)
every time I tried and got an error saying "line 1, char
5, error: expected identifier, code:800A03F2, source:
Microsoft VBscript compilation error"

what that '%%i' mean?

thanks

al



Relevant Pages

  • Re: Query disabled users and delete their memberof associations
    ... I have been testing the following script and it is failing on line ... "microsoft vbscript compilation error: Unterminated string constant" ... Dim objDSE, objConnection, objCommand, objRecordset, i ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • Re: I am trying to get the login id from a full name
    ... When I run the script I get this error ... Microsoft VBScript compilation error: Expected end of statement ... 2000 logon name") you can use the NameTranslate object to convert this to ...
    (microsoft.public.scripting.vbscript)
  • Re: Script Encoder
    ... but apparently it doesn't recognize the scrambled file as an encoded ... Microsoft VBScript compilation error '800a0400' ... I must mention that I INCLUDEd the encoded file within a non-encoded script ... included file contents to the main page and encode it then it works fine. ...
    (microsoft.public.windows.server.scripting)
  • ./ Command not found
    ... I am trying to run a script in unix by saying ./form.pl but it always ... gives me an error saying "Command not found." ... Network admin that the permissions are set correctly and that perl is ...
    (comp.lang.perl.misc)
  • Monitoring Scripts
    ... work with VBScript. ... Here is sample script, you can copy ... using the WMS 'Monitor' pane. ...
    (microsoft.public.windowsmedia.server)