Skip to content

Commit 8787eba

Browse files
committed
[NET] Add help text for the NET GROUP command and improve the NET LOCALGROUP help text
1 parent a8f1bea commit 8787eba

File tree

9 files changed

+201
-84
lines changed

9 files changed

+201
-84
lines changed

base/applications/network/net/help.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ INT cmdHelp(INT argc, WCHAR **argv)
8686
if (_wcsicmp(argv[2], L"GROUP") == 0)
8787
{
8888
ConResPuts(StdOut, IDS_GROUP_SYNTAX);
89-
ConResPuts(StdOut, IDS_GROUP_HELP);
89+
ConResPuts(StdOut, IDS_GROUP_HELP_1);
90+
ConResPuts(StdOut, IDS_GROUP_HELP_2);
91+
ConResPuts(StdOut, IDS_GROUP_HELP_3);
92+
ConResPuts(StdOut, IDS_GROUP_HELP_4);
93+
ConResPuts(StdOut, IDS_GROUP_HELP_5);
94+
ConResPuts(StdOut, IDS_GROUP_HELP_6);
95+
ConResPuts(StdOut, IDS_GROUP_HELP_7);
9096
ConResPuts(StdOut, IDS_GENERIC_PAGE);
9197
return 0;
9298
}

base/applications/network/net/lang/en-US.rc

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,23 @@ type NET CONFIG SERVER without parameters.\n\n"
8383
WORKSTATION\n\n"
8484
IDS_FILE_SYNTAX "NET FILE [id [/CLOSE]]\n\n"
8585
IDS_FILE_HELP "FILE\n...\n\n"
86-
IDS_GROUP_SYNTAX "NET GROUP ...\n\n"
87-
IDS_GROUP_HELP "GROUP\n...\n\n"
86+
IDS_GROUP_SYNTAX "NET GROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
87+
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
88+
groupname username [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
89+
IDS_GROUP_HELP_1 "NET GROUP adds, displays or modifies global groups on servers. When\n\
90+
used without parameters, it displays the groupnames on the server.\n\n"
91+
IDS_GROUP_HELP_2 "groupname Is the name of the group to add, expand, or delete.\n\
92+
Supply only a groupname to view a list of users\n\
93+
in a group.\n"
94+
IDS_GROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
95+
Enclose the text inquotation marks.\n"
96+
IDS_GROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
97+
of the current domain. Otherwise, the operation is \n\
98+
performed on the local computer.\n"
99+
IDS_GROUP_HELP_5 "username[ ...] List one or more usernames to add to or remove from\n\
100+
a group. Separate multiple username entries with a space.\n"
101+
IDS_GROUP_HELP_6 "/ADD Adds a group, or adds a username to a group.\n"
102+
IDS_GROUP_HELP_7 "/DELETE Removes a group, or removes a username from a group.\n\n"
88103
IDS_HELP_SYNTAX "NET HELP command\n - or -\nNET command /HELP\n\n"
89104
IDS_HELP_HELP_1 " The following commands are available:\n\n\
90105
NET ACCOUNTS NET HELP NET SHARE\n\
@@ -105,8 +120,8 @@ message and suggested actions you can take to solve the problem.\n\n"
105120
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
106121
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
107122
groupname name [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
108-
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
109-
options, it displays the local groups on the computer.\n\n"
123+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP adds, displays or modifies local groups on computers. When\n\
124+
used without parameters, it displays the local groups on the computer.\n\n"
110125
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
111126
delete. Supply only a groupname to view a list of\n\
112127
users or global groups in a local group.\n"
@@ -115,7 +130,7 @@ options, it displays the local groups on the computer.\n\n"
115130
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
116131
of the current domain. Otherwise, the operation is \n\
117132
performed on the local computer.\n"
118-
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
133+
IDS_LOCALGROUP_HELP_5 "name[ ...] List one or more usernames or groupnams to add to or\n\
119134
remove from a local group. Separate multiple entries with\n\
120135
a space. Names may be users or global groups, but not\n\
121136
other local groups. If a user is from another doamin,\n\

base/applications/network/net/lang/es-ES.rc

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,23 @@ type NET CONFIG SERVER without parameters.\n\n"
8686
WORKSTATION\n\n"
8787
IDS_FILE_SYNTAX "NET FILE [id [/CLOSE]]\n\n"
8888
IDS_FILE_HELP "NET FILE\n...\n\n"
89-
IDS_GROUP_SYNTAX "NET GROUP ...\n\n"
90-
IDS_GROUP_HELP "GROUP\n...\n\n"
89+
IDS_GROUP_SYNTAX "NET GROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
90+
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
91+
groupname username [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
92+
IDS_GROUP_HELP_1 "NET GROUP adds, displays or modifies global groups on servers. When\n\
93+
used without parameters, it displays the groupnames on the server.\n\n"
94+
IDS_GROUP_HELP_2 "groupname Is the name of the group to add, expand, or delete.\n\
95+
Supply only a groupname to view a list of users\n\
96+
in a group.\n"
97+
IDS_GROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
98+
Enclose the text inquotation marks.\n"
99+
IDS_GROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
100+
of the current domain. Otherwise, the operation is \n\
101+
performed on the local computer.\n"
102+
IDS_GROUP_HELP_5 "username[ ...] List one or more usernames to add to or remove from\n\
103+
a group. Separate multiple username entries with a space.\n"
104+
IDS_GROUP_HELP_6 "/ADD Adds a group, or adds a username to a group.\n"
105+
IDS_GROUP_HELP_7 "/DELETE Removes a group, or removes a username from a group.\n\n"
91106
IDS_HELP_SYNTAX "NET HELP <comando>\n - o -\nNET <comando> /HELP\n\n"
92107
IDS_HELP_HELP_1 " Éstos son los argumentos de línea de comandos disponibles:\n\n\
93108
NET ACCOUNTS NET HELP NET SHARE\n\
@@ -108,8 +123,8 @@ message and suggested actions you can take to solve the problem.\n\n"
108123
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [grupo [/COMMENT:""texto""]] [/DOMAIN]\n\
109124
grupo {/ADD [/COMMENT:""texto""] | /DELETE} [/DOMAIN]\n\
110125
grupo nombre [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
111-
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
112-
options, it displays the local groups on the computer.\n\n"
126+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP adds, displays or modifies local groups on computers. When\n\
127+
used without parameters, it displays the local groups on the computer.\n\n"
113128
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
114129
delete. Supply only a groupname to view a list of\n\
115130
users or global groups in a local group.\n"
@@ -118,7 +133,7 @@ options, it displays the local groups on the computer.\n\n"
118133
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
119134
of the current domain. Otherwise, the operation is \n\
120135
performed on the local computer.\n"
121-
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
136+
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add to or\n\
122137
remove from a local group. Separate multiple entries with\n\
123138
a space. Names may be users or global groups, but not\n\
124139
other local groups. If a user is from another doamin,\n\

base/applications/network/net/lang/ro-RO.rc

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,23 @@ type NET CONFIG SERVER without parameters.\n\n"
8989
WORKSTATION\n\n"
9090
IDS_FILE_SYNTAX "NET FILE [id [/CLOSE]]\n\n"
9191
IDS_FILE_HELP "NET FILE\n...\n\n"
92-
IDS_GROUP_SYNTAX "NET GROUP ...\n\n"
93-
IDS_GROUP_HELP "GROUP\n...\n\n"
92+
IDS_GROUP_SYNTAX "NET GROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
93+
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
94+
groupname username [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
95+
IDS_GROUP_HELP_1 "NET GROUP adds, displays or modifies global groups on servers. When\n\
96+
used without parameters, it displays the groupnames on the server.\n\n"
97+
IDS_GROUP_HELP_2 "groupname Is the name of the group to add, expand, or delete.\n\
98+
Supply only a groupname to view a list of users\n\
99+
in a group.\n"
100+
IDS_GROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
101+
Enclose the text inquotation marks.\n"
102+
IDS_GROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
103+
of the current domain. Otherwise, the operation is \n\
104+
performed on the local computer.\n"
105+
IDS_GROUP_HELP_5 "username[ ...] List one or more usernames to add to or remove from\n\
106+
a group. Separate multiple username entries with a space.\n"
107+
IDS_GROUP_HELP_6 "/ADD Adds a group, or adds a username to a group.\n"
108+
IDS_GROUP_HELP_7 "/DELETE Removes a group, or removes a username from a group.\n\n"
94109
IDS_HELP_SYNTAX "NET HELP <comandă>\n - sau -\nNET <comandă> /HELP\n\n"
95110
IDS_HELP_HELP_1 " Sunt disponibile următoarele comenzi:\n\n\
96111
NET ACCOUNTS NET HELP NET SHARE\n\
@@ -111,8 +126,8 @@ message and suggested actions you can take to solve the problem.\n\n"
111126
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [nume-de-grup [/COMMENT:""text""]] [/DOMAIN]\n\
112127
nume-de-grup {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
113128
nume-de-grup nume [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
114-
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
115-
options, it displays the local groups on the computer.\n\n"
129+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP adds, displays or modifies local groups on computers. When\n\
130+
used without parameters, it displays the local groups on the computer.\n\n"
116131
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
117132
delete. Supply only a groupname to view a list of\n\
118133
users or global groups in a local group.\n"
@@ -121,7 +136,7 @@ options, it displays the local groups on the computer.\n\n"
121136
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
122137
of the current domain. Otherwise, the operation is \n\
123138
performed on the local computer.\n"
124-
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
139+
IDS_LOCALGROUP_HELP_5 "name[ ...] List one or more usernames or groupnams to add to or\n\
125140
remove from a local group. Separate multiple entries with\n\
126141
a space. Names may be users or global groups, but not\n\
127142
other local groups. If a user is from another doamin,\n\

base/applications/network/net/lang/ru-RU.rc

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,23 @@ type NET CONFIG SERVER without parameters.\n\n"
8585
WORKSTATION\n\n"
8686
IDS_FILE_SYNTAX "NET FILE [id [/CLOSE]]\n\n"
8787
IDS_FILE_HELP "NET FILE\n...\n\n"
88-
IDS_GROUP_SYNTAX "NET GROUP ...\n\n"
89-
IDS_GROUP_HELP "GROUP\n...\n\n"
88+
IDS_GROUP_SYNTAX "NET GROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
89+
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
90+
groupname username [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
91+
IDS_GROUP_HELP_1 "NET GROUP adds, displays or modifies global groups on servers. When\n\
92+
used without parameters, it displays the groupnames on the server.\n\n"
93+
IDS_GROUP_HELP_2 "groupname Is the name of the group to add, expand, or delete.\n\
94+
Supply only a groupname to view a list of users\n\
95+
in a group.\n"
96+
IDS_GROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
97+
Enclose the text inquotation marks.\n"
98+
IDS_GROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
99+
of the current domain. Otherwise, the operation is \n\
100+
performed on the local computer.\n"
101+
IDS_GROUP_HELP_5 "username[ ...] List one or more usernames to add to or remove from\n\
102+
a group. Separate multiple username entries with a space.\n"
103+
IDS_GROUP_HELP_6 "/ADD Adds a group, or adds a username to a group.\n"
104+
IDS_GROUP_HELP_7 "/DELETE Removes a group, or removes a username from a group.\n\n"
90105
IDS_HELP_SYNTAX "NET HELP <Команда>\n - или -\nNET <Команда> /HELP\n\n"
91106
IDS_HELP_HELP_1 " Доступны следующие команды:\n\n\
92107
NET ACCOUNTS NET HELP NET SHARE\n\
@@ -107,8 +122,8 @@ message and suggested actions you can take to solve the problem.\n\n"
107122
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [имя_группы [/COMMENT:""текст""]] [/DOMAIN]\n\
108123
имя_группы {/ADD [/COMMENT:""текст""] | /DELETE} [/DOMAIN]\n\
109124
имя_группы имя [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111-
options, it displays the local groups on the computer.\n\n"
125+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP adds, displays or modifies local groups on computers. When\n\
126+
used without parameters, it displays the local groups on the computer.\n\n"
112127
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113128
delete. Supply only a groupname to view a list of\n\
114129
users or global groups in a local group.\n"
@@ -117,7 +132,7 @@ options, it displays the local groups on the computer.\n\n"
117132
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118133
of the current domain. Otherwise, the operation is \n\
119134
performed on the local computer.\n"
120-
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
135+
IDS_LOCALGROUP_HELP_5 "name[ ...] List one or more usernames or groupnams to add to or\n\
121136
remove from a local group. Separate multiple entries with\n\
122137
a space. Names may be users or global groups, but not\n\
123138
other local groups. If a user is from another doamin,\n\

base/applications/network/net/lang/tr-TR.rc

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,23 @@ type NET CONFIG SERVER without parameters.\n\n"
8585
WORKSTATION\n\n"
8686
IDS_FILE_SYNTAX "NET FILE [id [/CLOSE]]\n\n"
8787
IDS_FILE_HELP "NET FILE\n...\n\n"
88-
IDS_GROUP_SYNTAX "NET GROUP ...\n\n"
89-
IDS_GROUP_HELP "GROUP\n...\n\n"
88+
IDS_GROUP_SYNTAX "NET GROUP [groupname [/COMMENT:""text""]] [/DOMAIN]\n\
89+
groupname {/ADD [/COMMENT:""text""] | /DELETE} [/DOMAIN]\n\
90+
groupname username [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
91+
IDS_GROUP_HELP_1 "NET GROUP adds, displays or modifies global groups on servers. When\n\
92+
used without parameters, it displays the groupnames on the server.\n\n"
93+
IDS_GROUP_HELP_2 "groupname Is the name of the group to add, expand, or delete.\n\
94+
Supply only a groupname to view a list of users\n\
95+
in a group.\n"
96+
IDS_GROUP_HELP_3 "/COMMENT:""text"" Adds a comment for a new or existing group.\n\
97+
Enclose the text inquotation marks.\n"
98+
IDS_GROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
99+
of the current domain. Otherwise, the operation is \n\
100+
performed on the local computer.\n"
101+
IDS_GROUP_HELP_5 "username[ ...] List one or more usernames to add to or remove from\n\
102+
a group. Separate multiple username entries with a space.\n"
103+
IDS_GROUP_HELP_6 "/ADD Adds a group, or adds a username to a group.\n"
104+
IDS_GROUP_HELP_7 "/DELETE Removes a group, or removes a username from a group.\n\n"
90105
IDS_HELP_SYNTAX "NET HELP <Komut>\n - ya da -\nNET <Komut> /HELP\n\n"
91106
IDS_HELP_HELP_1 " Aşağıdaki komutlar kullanılabilir:\n\n\
92107
NET ACCOUNTS NET HELP NET SHARE\n\
@@ -107,8 +122,8 @@ message and suggested actions you can take to solve the problem.\n\n"
107122
IDS_LOCALGROUP_SYNTAX "NET LOCALGROUP [takım adı [/COMMENT:""metin""]] [/DOMAIN]\n\
108123
takım adı {/ADD [/COMMENT:""metin""] | /DELETE} [/DOMAIN]\n\
109124
takım adı ad [...] {/ADD | /DELETE} [/DOMAIN]\n\n"
110-
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP modifies local groups on computers. When used without\n\
111-
options, it displays the local groups on the computer.\n\n"
125+
IDS_LOCALGROUP_HELP_1 "NET LOCALGROUP adds, displays or modifies local groups on computers. When\n\
126+
used without parameters, it displays the local groups on the computer.\n\n"
112127
IDS_LOCALGROUP_HELP_2 "groupname Is the name of the local group to add, expand, or\n\
113128
delete. Supply only a groupname to view a list of\n\
114129
users or global groups in a local group.\n"
@@ -117,7 +132,7 @@ options, it displays the local groups on the computer.\n\n"
117132
IDS_LOCALGROUP_HELP_4 "/DOMAIN Performs the operation on a domain controller\n\
118133
of the current domain. Otherwise, the operation is \n\
119134
performed on the local computer.\n"
120-
IDS_LOCALGROUP_HELP_5 "name [ ...] List one or more usernames or groupnams to add or to\n\
135+
IDS_LOCALGROUP_HELP_5 "name[ ...] List one or more usernames or groupnams to add to or\n\
121136
remove from a local group. Separate multiple entries with\n\
122137
a space. Names may be users or global groups, but not\n\
123138
other local groups. If a user is from another doamin,\n\

0 commit comments

Comments
 (0)