From 905f5f4da0a3df5cc818b2fd5af78b40fc7bff83 Mon Sep 17 00:00:00 2001 From: Robson Cruz Date: Wed, 25 Oct 2023 13:56:53 -0300 Subject: [PATCH] choice, net, sc, w32tm: remove locale from link; sc: update page, add alias pages (#11238) * choice, net, sc, w32tm: remove locale from link * sc: update command syntax Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * sc-*: add alias pages Signed-off-by: K.B.Dharun Krishna --------- Signed-off-by: K.B.Dharun Krishna Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/windows/choice.md | 2 +- pages/windows/net.md | 2 +- pages/windows/sc-config.md | 8 ++++++++ pages/windows/sc-create.md | 8 ++++++++ pages/windows/sc-delete.md | 8 ++++++++ pages/windows/sc-query.md | 8 ++++++++ pages/windows/sc.md | 10 +++++----- pages/windows/w32tm.md | 2 +- 8 files changed, 40 insertions(+), 8 deletions(-) create mode 100644 pages/windows/sc-config.md create mode 100644 pages/windows/sc-create.md create mode 100644 pages/windows/sc-delete.md create mode 100644 pages/windows/sc-query.md diff --git a/pages/windows/choice.md b/pages/windows/choice.md index e9b91013a..ed1bdd7c6 100644 --- a/pages/windows/choice.md +++ b/pages/windows/choice.md @@ -1,7 +1,7 @@ # choice > Prompt user to select a choice and return the selected choice index. -> More information: . +> More information: . - Prompt the current user to select a `Y` or `N` choice: diff --git a/pages/windows/net.md b/pages/windows/net.md index 3ae82cb77..5b85495a4 100644 --- a/pages/windows/net.md +++ b/pages/windows/net.md @@ -1,7 +1,7 @@ # net > System utility to view and modify network-related settings. -> More information: . +> More information: . - Start or stop a Windows service synchronously: diff --git a/pages/windows/sc-config.md b/pages/windows/sc-config.md new file mode 100644 index 000000000..d355b88f8 --- /dev/null +++ b/pages/windows/sc-config.md @@ -0,0 +1,8 @@ +# sc config + +> This command is an alias of `sc.exe config`. +> More information: . + +- View documentation for the original command: + +`tldr sc` diff --git a/pages/windows/sc-create.md b/pages/windows/sc-create.md new file mode 100644 index 000000000..4bca69d79 --- /dev/null +++ b/pages/windows/sc-create.md @@ -0,0 +1,8 @@ +# sc create + +> This command is an alias of `sc.exe create`. +> More information: . + +- View documentation for the original command: + +`tldr sc` diff --git a/pages/windows/sc-delete.md b/pages/windows/sc-delete.md new file mode 100644 index 000000000..47eb02de8 --- /dev/null +++ b/pages/windows/sc-delete.md @@ -0,0 +1,8 @@ +# sc delete + +> This command is an alias of `sc.exe delete`. +> More information: . + +- View documentation for the original command: + +`tldr sc` diff --git a/pages/windows/sc-query.md b/pages/windows/sc-query.md new file mode 100644 index 000000000..603b24222 --- /dev/null +++ b/pages/windows/sc-query.md @@ -0,0 +1,8 @@ +# sc query + +> This command is an alias of `sc.exe query`. +> More information: . + +- View documentation for the original command: + +`tldr sc` diff --git a/pages/windows/sc.md b/pages/windows/sc.md index 94787744e..848dbb369 100644 --- a/pages/windows/sc.md +++ b/pages/windows/sc.md @@ -1,20 +1,20 @@ # sc > Communicate with the Service Control Manager and services. -> More information: . +> More information: . - Show the status of a service (no service name will list all services): -`sc queryex {{service_name}}` +`sc.exe query {{service_name}}` - Start a service asynchronously: -`sc start {{service_name}}` +`sc.exe create {{service_name}} binpath= {{path\to\service_binary_file}}` - Stop a service asynchronously: -`sc stop {{service_name}}` +`sc.exe delete {{service_name}}` - Set the type of a service: -`sc config {{service_name}} type= {{service_type}}` +`sc.exe config {{service_name}} type= {{service_type}}` diff --git a/pages/windows/w32tm.md b/pages/windows/w32tm.md index d6cb50333..8f0abc342 100644 --- a/pages/windows/w32tm.md +++ b/pages/windows/w32tm.md @@ -1,7 +1,7 @@ # w32tm > Query and control the w32time time synchronization service. -> More information: . +> More information: . - Show the current status of time synchronization: