中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-03 10:53
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Statistical user group information
Printable Version  3,001 / 51
Floor31 yuipr Posted 2007-02-10 06:36
初级用户 Posts 25 Credits 52
Originally posted by redtek at 2007-2-9 05:26 PM:
Also, I don't have time to debug for you,
Just seeing that you didn't fully state what you need at one time, and you didn't write out the execution effect of stepping through on your own machine, which is worrying,
So, I just wrote...

Brother redtek, it seems that my previous expression wasn't very clear. Now using net user %username% has a problem, prompting that the user is not found. It seems the problem is here.
Floor32 redtek Posted 2007-02-10 06:43
金牌会员 Posts 1,147 Credits 2,902
Brother, you're being too polite. Don't thank me. If you want to thank someone, thank brothers zh159, ccwan, and qingfushuan for always helping you enthusiastically solve problems :).

Brother, see if the account you're logged in with doesn't have enough permissions (currently not in the administrator group?).

I don't understand grids and get dizzy looking at English, so I can't help you much, just giving a little suggestion :).

Brother, write the problem completely :).
Brothers zh159, ccwan, and qingfushuan, the experts, will help you solve the problem :).
Floor33 zh159 Posted 2007-02-10 06:46
金牌会员 Posts 1,467 Credits 3,687
Originally posted by yuipr at 2007-2-9 17:12:

Thank you very much for your detailed answer.
C:\Documents and Settings\yichuanj>@echo off
net user %username%
The syntax of this command is:


NET Check your spelling of the word first
Floor34 yuipr Posted 2007-02-10 06:49
初级用户 Posts 25 Credits 52
Originally posted by redtek at 2007-2-9 05:43 PM:
You're too kind. Don't thank me. If you want to thank someone, thank zhi159, ccwan, and qingfushuan who have been helping you enthusiastically to solve the problem : )

Check if the account you're logged in with doesn't have enough permissions (the one you're currently logged in with isn't an administrator...

The account I'm logged in with is in the administrator group. I don't know why this problem exists. I've been hanging out on the forum all afternoon. I'm very grateful for the help from zhi159, ccwan, and qingfushuan. I'm currently executing net user %username% and there are still problems. It's not a permission issue. Does anyone have any other solutions?
Floor35 yuipr Posted 2007-02-10 06:51
初级用户 Posts 25 Credits 52
Originally posted by zh159 at 2007-2-9 05:46 PM:

Check your word spelling first


Is it not "net user "
Floor36 zh159 Posted 2007-02-10 06:52
金牌会员 Posts 1,467 Credits 3,687
Originally posted by yuipr at 2007-2-9 17:51:

Please not "net user "

Earlier you wrote uesr

echo %username%

See if it can be displayed
Floor37 qingfushuan Posted 2007-02-10 06:52
高级用户 Posts 327 Credits 502
net user net localgroup
Query user Query user group
Floor38 qingfushuan Posted 2007-02-10 06:54
高级用户 Posts 327 Credits 502
%username% Current username
Floor39 yuipr Posted 2007-02-10 06:55
初级用户 Posts 25 Credits 52
Originally posted by zh159 at 2007-2-9 05:52 PM:

You previously wrote uesr

echo %username%

See if it can be displayed

Maybe it was a typo before, please excuse me
C:\Documents and Settings\yichuanj>echo %username%
yichuanj
It shows the current logged-in user
Floor40 yuipr Posted 2007-02-10 06:56
初级用户 Posts 25 Credits 52
Originally posted by qingfushuan at 2007-2-9 05:52 PM:
net user net localgroup
Query user Query user group

Then does qingfushuan say that in batch processing, just use net user directly?
Floor41 zh159 Posted 2007-02-10 06:57
金牌会员 Posts 1,467 Credits 3,687
Then try again

net user %username%
Floor42 qingfushuan Posted 2007-02-10 06:59
高级用户 Posts 327 Credits 502
Directly use `net user >>1.txt` in cmd, and the users you queried are in 1.txt. Directly use `net loaclgroup >>2.txt`, and the user groups you queried are in 2.txt
Floor43 qingfushuan Posted 2007-02-10 07:00
高级用户 Posts 327 Credits 502
Please provide the Chinese text that needs to be translated.
Floor44 yuipr Posted 2007-02-10 07:02
初级用户 Posts 25 Credits 52
Originally posted by qingfushuan at 2007-2-9 05:59 PM:
Directly use net user >>1.txt in cmd, and the 1.txt will be all the users you queried
Directly use net loaclgroup >>2.txt in cmd, and the 2.txt will be all the user groups you queried

This is indeed a method. The key is that when displayed this way, the information for each user is still not clear. The ideal effect is zhanggj (user): (the following is the group information) ccusers, ccusers, ccmsg
Floor45 yuipr Posted 2007-02-10 07:03
初级用户 Posts 25 Credits 52
Originally posted by zh159 at 2007-2-9 05:57 PM:
Then try again

net user %username%

Still prompts that the user is not found.
Prev  1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023