From 121d394369e8ea77930579c2d8a285c219ac446c Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 1 Jan 2014 16:05:52 +0000 Subject: [PATCH] Allow querying a service's name. Since we can now open a service by its display name it may be interesting to know what its canonical name is. Find out with: nssm get Name --- README.txt | 11 +++++++++++ messages.mc | Bin 119752 -> 120226 bytes settings.cpp | 10 ++++++++++ settings.h | 1 + 4 files changed, 22 insertions(+) diff --git a/README.txt b/README.txt index 6955ba4..19fcb8e 100644 --- a/README.txt +++ b/README.txt @@ -324,6 +324,7 @@ run NSSM itself. The parameters recognised are as follows: DisplayName: Service display name. ImagePath: Path to the service executable. ObjectName: User account which runs the service. + Name: Service key name. Start: Service startup type. Type: Service type. @@ -381,6 +382,12 @@ exit code of 2, run nssm set AppExit 2 Exit +The Name parameter can only be queried, not set. It returns the service's +registry key name. This may be useful to know if you take advantage of +the fact that you can substitute the service's display name anywhere where +the syntax calls for . + + The ObjectName parameter requires an additional argument only when setting a username. The additional argument is the password of the user. @@ -486,6 +493,10 @@ To remove the server: nssm remove UT2004 confirm +To find out the service name of a service with a display name: + + nssm get "Background Intelligent Transfer Service" Name + Building NSSM from source ------------------------- diff --git a/messages.mc b/messages.mc index a53eee184f16bbf06da78888fbd9801fa8cdd7f9..376132ffdf4c88d1ea3a9dfdc68b1e8bac9d9f67 100644 GIT binary patch delta 122 zcmX@HoPE)1_6-Z_CqIxBnEXzck28qDmBEj}k->NJ!bQ2073%mHizgdi6y;W6C}K!u t$YV%k$erBZW;pqj9#n=GNroYH^2c7o$qKqS