Re: Startup program before login



C:\Documents and Settings\phantom>sc
'sc' is not recognized as an internal or external command,
operable program or batch file.


-to Dave Patrick: How do I use this srvany.exe file? I don't know any
command line parameters for it, thus just tried running it in hopes of
sheeding light, but it did not do anything. Didn't even terminate..
(had to ctrl+c)


David H. Lipman wrote:
From: "Dave Patrick" <DSPatrick@xxxxxxxxxxxxxxxx>

| In that case you'll probably be better off with srvany from the resource
| kit.
|

He couldn't use the SC Create <service> to crate a NT Service ?
I used to use SRVANY with NT 4.0 but Win2K and above have the SC.EXE command.

Syntax:
sc create /?
Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec|error>
(default = own)
start= <boot|system|auto|demand|disabled|error>
(default = demand)
error= <normal|severe|critical|error|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>

--
Dave
http://www.claymania.com/removal-trojan-adware.html
http://www.ik-cs.com/got-a-virus.htm

.



Relevant Pages

  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... I simply execute the batch file and let them play... ... If it's by the hour you don't need a script. ... You can logoff a sessionname or a session ID in each case you have to ... Is it possible to issue the command from user1's logon to logoff ...
    (microsoft.public.windowsxp.basics)
  • Re: log off command
    ... SOON 3600 LOGOFF %ID2% ... If it doesn't work please post what the "at" command returns if you run it ... after the batch file and please again describe when it does not work. ... Matija Hrovat ...
    (microsoft.public.windowsxp.basics)
  • Re: Looking for binary file xfer from TRSDOS6/LSDOS6
    ... be wrong with the command line parameters. ... By deleting a few lines from the start of the batch file, ... FTII will eventually reach and transfer the files it just claimed were ... and my list is longer than the buffer can handle. ...
    (comp.sys.tandy)
  • Re: problem with a batch file wkgrp parameter
    ... The short answer is you're using the wrong syntax in your batch file. ... that isn't the secured workgroup information file used to secure the database, ... permission to open this secured database. ... You need to remove the "START /MAX" command, but even then it won't work ...
    (microsoft.public.access.security)

Loading