configuration files (such as web. config), various related resource files, as well as various source code files including Core Business Code, these files are generally placed in a virtual directory of the Web server. Because ASP. NET adopts the compiling architecture, it also includes various DLL files after compilation, which are placed in the bin directory. For deploying web applications, you can use the following methods in. NET 2.0:
1. Use xcopy
Recently writing code requires the function of copying folders and all files in these folders. you can use this function to delete these files. you can use the custom functions of xcopy and deldir, it is much more convenient.
The code is as follows:
/* Copy the xCopy function usage:
* XCopy ("feiy", "feiy2", 1): copy the files in feiy to feiy2, including subdir
Recently writing code requires the function of copying folders and all files in these folders. you can use this function to delete these files. you can use the custom functions of xcopy and deldir, it is much more convenient.
The code is as follows:
/* Copy the xCopy function usage:* XCopy ("feiy", "feiy2", 1): copy the files in feiy to feiy2, including subdi
Properties
The catalog can be displayed or modified by attributes. attrib for the directory, you must explicitly give the directory name, not the wildcard character. For example, to hide the directory C:secret, you can enter a command:
The code is as follows
Copy Code
ATTRIB +h C:secret
The following command works only on files and does not affect the directory
The code is as follows
Copy Code
ATTRIB +h C:*.*
View Ar
configuration files (such as web. config), various related resource files, as well as various source code files including Core Business Code, these files are generally placed in a virtual directory of the Web server. Because ASP. NET adopts the compiling architecture, it also includes various DLL files after compilation, which are placed in the bin directory. To deploy a web application in. NET 2.0, you can use the following methods:
1. Use xcopy for
Recently, when deploying a server, you need to copy a site file to another site. A manual copy is too tiring, wrote a simple batch file, basically can achieve the purpose, specifically how to do it:
1, the need to copy the files to each site, put in a separate directory. Like E:\WebSite\orig\.
2, using the dos xcopy command, the source file orig copy to each destination file, the script is as follows:
on the C drive.
If we delete the file and run the program, the program will return to the default state.
Deployment Scheme
Xcopy deployment
Installation and deployment
Private and Shared application assembly
Side-by-side deployment
Xcopy deployment
Xcopy all application-Related Files:. exe assembly, referenced. dll assembly (except the. dll file in GAC), and
'====================
Lan
File Automatic Backup vbs script ============================
'
'Condition: 10.97.1.x xcopy/xcopy belongs to Adminstrator.
'The directory where the shared backup file is located gives xcopy users full control!
'After running, there are two processes in the management process: wscript.
EXE , Ping.exe
'Use the date as the log file name
are ensured by the operating system so that there is a single sid,iis even better, and he ensures that the new account name and group name will never be localized. For example, whether you install a language version of the WINDOWS,IIS account name will always be IUSR, and the group name will always be IIS_IUSRS.The great benefit of moving our site to another IIS7 is that you can use xcopy/o to seamlessly copy documents along with their ownership and
The Win7 system's file permissions are much stricter than previous XP, and we didn't change much when copying normal files, but how do we do when we want to copy a file with permissions and want to keep the file's permission settings?
Step One: Open the Start menu and enter "cmd" in the search field. See the CMD program above the column, click it with the right mouse button, and in the right key menu to find an administrator to run.
▲ Run cmd with administrator privileges
Step two: Sup
These two days suddenly see a demand point, need to implement the function of incremental backup, find some information
Record the following command, which enables simple incremental backup with the command line.
Win:
Copy Code code as follows:
xcopy C:\Docs d:\backup\docs/e/h/r/y/i/d
The specific value of each parameter can be referenced by xcopy/? The output result
Linux can be d
' Xcopy ' is not an internal or external command, or a program or batch file that can be runProblem descriptionEach time the operation will be reported red, the following conditions occur' Xcopy ' is not an internal or external command, is not a running program or a batch file system cannot find the path specified by the system cannot find the specified path system cannot find the path specified by the syst
Copy codeThe Code is as follows:/* Copy the xCopy function usage:* XCopy ("feiy", "feiy2", 1): copy the files in feiy to feiy2, including subdirectories.* XCopy ("feiy", "feiy2", 0): copy the file under feiy to feiy2, excluding subdirectories.* Parameter description:* $ Source: source directory name* $ Destination: target directory name* $ Child: Indicates whethe
routes) {routes. ignoreRoute ("{resource }. axd/{* pathInfo} "); routes. mapRoute ("Default", // route name "{controller}/{action}/{id}", // URL with parameters new {controller = "Home ", action = "Index", id = UrlParameter. optional} // default parameter value);/*** register the plug-in example. here you should register the selected plug-in during installation. Of course, enable the plug-in when the project is running, also, register * IPluginsManger ipm = new PluginsManger (); IPlugin blogplu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.