Church.exe 2017 年 7 月 3 日 下午 2:22
how to use, net use
how do i use net use
net use \\%ip% %pass%/USER:%user%
is how i have seen it but do i change out the % signs or leave them in and put the info in between them
< >
目前顯示第 1-7 則留言,共 7
Church.exe 2017 年 7 月 3 日 下午 2:28 
and how would i make an account on said computer while running it
such as running
net user /add [username] [password]
but part by part or before i run net use
Evo 2017 年 7 月 3 日 下午 2:35 
Are you talking about command line?
DarkCrystalMethod 2017 年 7 月 3 日 下午 5:06 
help
help net
net help
net help user

That should get you started
net user somehaxor 12345 /add /comment:"one bad mother -SHUT YO MOUTH" /FULLNAME:"Shaftkovsky Smith"


Church.exe 2017 年 7 月 3 日 下午 6:11 
thank you but how do i navigate this i just need to know my question tho so if its quicker to just say that then do that or if the reverse is the case
DarkCrystalMethod 2017 年 7 月 3 日 下午 6:22 
For the example in your original question

net use \\%ip% %pass%/USER:%user%
would be typed at a command prompt

the phrase %ip% itself would be evaluated and turned into the ip of your machine (127.0.0.1 for example). %pass% would be your unencrypted password ("12345", the same combination on my luggage) %user% would be your windows login screen name (probably "sans")

You type the original line and run it and the command prompt itself pretends you really wrote
net use \\127.0.0.1 12345/User:sans

but you could actually type that and have the same result.

Where does it get these values from? Simple, the command prompt is pulling it from your environment variables.

at any command prompt run the set command
You'll see a pile of variables. Some you may recognize, like hostname cpu, username, ip, path and a lot of others you probably haven't seen before. Windows needs most of these just to operate, although it won't tell you which exact ones, you just have to know(or research). Some of them were added by other programs (do you have a java-jre1.6 floating around near the end of your path variable? How about JAVA_HOME?)

Anyway, the command prompt pulls these values at the time that its evaluating the expressions in the command line that you gave it.


Here, try this:
C:\Windows\system32>echo %path% %pass% %username%
and for me when I run it on MY home computer is:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mercurial\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\ NVIDIA Corporation\PhysX\Common %pass% Chris

You'll probaly notice that %pass% remained as it was. There is no variable named pass so it left it alone.
最後修改者:DarkCrystalMethod; 2017 年 7 月 3 日 下午 6:27
Church.exe 2017 年 7 月 3 日 下午 7:14 
I know that but would i keep the % signs
DarkCrystalMethod 2017 年 7 月 3 日 下午 7:26 
You've mixed up your question so much I don't know which topic you're having an issue with.
at a command prompt run help. Also run all those other help commands. That is general useage.
If you want to learn a specific command run help <command> (if the help is built into the command prompt itself). otherwise run the command and then follow it with the /? switch. Ideally all commands explain what they're expecting in order to do their function.
The net command has A LOT of options. So beyond the normal help you can run net help and see what you can do.
I triply explained about environment variables and what the command prompt does if it sees it in the command you are attempting to run. The matched pair of percentage signs around a name means to replace that text with the current value of that environment variable. It gets rid of the percent signs (otherwise it would keep trying to evaluate the new text it just stuck there). You see form my example that they dissappeared for the two existing variables that it COULD find. Also, feel free to SET all the variables you want, so that the scripts that you write actually use your own set of variables.
< >
目前顯示第 1-7 則留言,共 7
每頁顯示: 1530 50

張貼日期: 2017 年 7 月 3 日 下午 2:22
回覆: 7