コマンドサポート&サンプルTOPへ

Windowsのコマンドプロンプトによるサービスの登録(レジストリに追加)をする方法(sc create)


sc create [サービス名] [binPath= ] オプション

説明 : サービスの登録(レジストリに追加)(サービス名は以下の場所より取得:表示名ではない)

オプション

注意: オプション名には等号が含まれています。等号と値の間にはスペースが必要です。
type= (既定 = own)
start= (既定 = demand)
error= (既定 = normal)
binPath= <.exe ファイルへの BinaryPathName>
group=
tag=
depend= <依存関係 (スラッシュ (/) で区切ります)>
obj= (既定 = LocalSystem)
DisplayName= <表示名>
password= <パスワード>


サンプルソース


(入力)

sc create "test" binPath= e:\test.exe DisplayName= test


(出力)

[SC] CreateService SUCCESS



  

戻る




Copyright (C) コマンドサポート&サンプル by wannko All Rights Reserved.
お問合せ先 ⇒ nachiko★wannko.net(★を@に変更して下さい。)