سلام
با استفاده از این دستور شما میتونید سرویس برای ویندوز بسازید و یا حذف کنید.
فرض کنید شما یک دستوری داریدی که نیاز هست دائما تکرار بشود، یک رجیستری براش می سازید و مسیر اجرا شدن را وارد میکنید.
نمونه کد رجیستریکد:Microsoft Tools SRVANY.exe (Applications as Services Utility) and INSTSRV.exe (Service Installer) - Those files can be downloaded from Microsoft as a part of Windows 2000 Resource Kit at Windows Server. They are also available from other locations such as http://www.electrasoft.com/srvany/srvany.htm, Home - Browser Automation, Data Extraction and Web Testing Software | iMacros, etc. Detailed instructions on how to use this package are available at How To Create a User-Defined Service. In order to follow the steps in this HOW-TO you MUST obtain both executables.
Syntax ساخت سرویسکد:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TEST\Parameters] "Application"="c:\\perl\\bin\\wperl.exe" "AppParameters"="c:\\test\\bin\\TEST --logging=eventlog c:\\TEST\\bin\\TEST.cfg" "AppDirectory"="c:\\TEST\\bin\\"
با سپاسکد:instsrv SERVICENAME c:\Service\executable\srvany.exe