net use share user – 业余语言练习

net use share user

C:\Windows\system32>net user admin admin /add
命令成功完成。
C:\Windows\system32>net user admin /del
命令成功完成。
C:\Windows\system32>net use
会记录新的网络连接。
状态 本地 远程 网络
--------------------------------------------------------
\\TSCLIENT\disk0 Microsoft Terminal Services
\\TSCLIENT\disk1 Microsoft Terminal Services
\\TSCLIENT\disk2 Microsoft Terminal Services
命令成功完成。
C:\Windows\system32>net use O: \\TSCLIENT\disk0 /user:admin
命令成功完成。
C:\Windows\system32>net use O: \\TSCLIENT\disk0 /user:admin
命令成功完成。
C:\Windows\system32>xcopy D:\test1\ O:\test1\
C:\Windows\system32>copy D:\test2.txt O:\test2.txt
C:\Windows\system32>move D:\test3.txt O:\test3.txt
C:\Windows\system32>del D:\test4.txt
C:\Windows\system32>type D:\test4.txt
123
123
123
C:\Windows\system32>copy con 1.txt
按:Ctrl+z
C:\Windows\system32>for /l %a in (1,1,5) do copy 1.txt %a

C:\Windows\system32>copy 1.txt 1
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 2
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 3
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 4
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 5
已复制         1 个文件。
C:\Windows\system32>for /l %a in (2,1,5) do copy 1.txt %a.txt

C:\Windows\system32>copy 1.txt 2.txt
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 3.txt
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 4.txt
已复制         1 个文件。

C:\Windows\system32>copy 1.txt 5.txt
已复制         1 个文件。
C:\Windows\system32>net share /?
此命令的语法是:
NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE
帐户名与安全标识间无任何映射完成。
C:\Windows\system32>net share DDD=D:\ /GRANT:admin,CHANGE
DDDD 共享成功。
C:\Windows\system32>net share
共享名 资源 注解
Published
Categorized as win

Leave a comment

Your email address will not be published. Required fields are marked *