. Net Framework 2.0 comes with a lightweight Web Server (Asp. net Development Server), but no help can be found in msdn. Because of the Windows XP SP2 I use, IIS often reports the error of excessive connections, but this web server does not, it's so easy to use.
The execution file is webdev. webserver. EXE in the directory: C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727. This version is of. Net framework2.0. If vs2008 is installed, the 9.0's webdev.websever.exe file is still in the Chinese version in the C: \ Program Files \ common files \ microsoft shared \ devserver \ 9.0directory.
View Command help via webdev. webserver /? You can see the Detailed Help.
Command syntax: webdev. webserver [/port: <service port>]/path: <physical path> [/vpath: <virtual path>]
Command Parameter: <service port>-(optional) HTTP service port number. The default value is 80. If you do not enter this parameter, the default value is port 80. If port 80 is occupied, an error is reported.
Command Parameters: <physical path>-Web ApplicationProgramRoot directory of the file system
Command Parameter: <virtual path>-(optional) URL virtual root directory of the Web application. The default value is "/"
Application Example: webdev.webserver.exe/port: 8088/path: "C: \ Inetpub \ wwwroot \ MyApp"/vpath: "/MyApp"
Application Example: Use http: // localhost: 8088/MyApp in the browser to browse
In addition, because you often need to call the command line window, you need to click "Start> Run" each time and enter the CMD command, which is very troublesome. Add a command menu to open the DOS window in the right-click menu.
Enter "Regedit" to open the Registry Editor, expand "hkey_classes_root \ Folder \ shell", right-click "shell", select "New> item", and then
Name this item "Open dos", right-click this sub-key, and then name it "command", and select
"Command", find and double-click "default" in the right window, and assign it to "C: \ windows \ system32 \ cmd.exe/K cd % 1 "and" OK ", and then press" F5 "to refresh the registry. In this way, when you right-click any folder, an extra command named "Open dos" will be displayed in the pop-up shortcut menu. Select it to open the command line window, and the path is located in the current directory. This method also applies to Windows 2003. If your system is Windows 2000, you only need to set the "default" value of "command" above to "C: \ winnt \ system32 \ cmd.exe/K cd % 1.