Find out if Var reg:tperlregex exists;
BEGIN REG: = Tperlregex.create (nil); Reg.
Subject: = ' CodeGear Delphi 2007 for Win32 '; Reg.
RegEx: = ' \d '; If Reg.
Match then ShowMessage (' found ') Else showmessage (' not found ');
Freeandnil (REG);
End
Find wheth
out exactly what files are written, depending on the size of the file and the specific data of the IO file in/procWe can use the-p [[emailprotected] ~]# lsof-p 1028COMMAND PID USER FD TYPE DEVICE size/off NODE namesshd 1028 Root CWD Dir 253,0 233 64/sshd 1028 Root RTD DIR 253,0 233 64/sshd 1028 Root txt REG 253,0 819640 2393730/usr/sbin/sshdsshd 1028 Root mem REG 253,0 61752 180464/usr/lib64/libnss_f
One, batch generation. REG file Operations Registry
You can easily generate. reg files by using the redirection symbols in batch processing. Then use the command to execute the. reg file!
Here, focus on how the. reg file operates the registry.
First the. reg file must be the
error code errorlevel or return code.
GotoWhen the batch file runs here, it will jump to the label specified by Goto, which is generally used with if. For example:
Goto end
: End
Echo this is the end
The label is represented by a string. The row where the label is located is not executed.
ChoiceYou can run different commands by entering a single character. The/C: parameter should be added for use, and C: should be followed by a prompt to enter characters without spaces. Its return code is 1
Label:http://www.cnblogs.com/pingfan1990/p/4558630.html ThemesMongoDBLinux such as: Choice/c:dme defrag,mem,end will show Defrag,mem,end[d,m,e]? sample: sample.bat the contents are as follows: @echo off Choice/end if errorlevel 3 Goto defrag (should first determine the highest error code) if errorlevel 2 goto MEM span class= "keyword" >if errotlevel 1 goto end :
REALTIME priority category start Application Wait to start the application and wait for it to end parameters These are the 32-bit GUI applications that CMD when the application executed for the parameters that are routed to the command/program. EXE returns a command prompt without waiting for the application to terminate. If executed within a command script, the new behavior does not occur. Choice command Choice Use this command to let the user enter a character to run different commands. Use
ySelect a for choice/c AB/M "option 1 and B for option 2. "Choice/c AB/N/m "option 1 select a, option 2 select B. "
If I run the command: choice/c ync/M "OK, Press Y, N, or cancel to press C. "The screen displays:Press Y to confirm, N to confirm, or C to cancel. [Y, N, C]?
For example, the content of test. bat is as follows (NOTE: When determining the return value using if errorlevel, sort the returned values from high to low ):@ Echo offChoice/C dimethyl/M "
conjunction with IF. Such as:
Goto END
: End
The echo this are the end
Label used: string indicating that the line of the label is not executed
Choice Use this command to allow the user to enter a character to run different commands. Use should be added/C: parameter, the letter should be written after the prompt can enter characters, no spaces between. Its return code is 1234 ...
such as: Choice/c:dme defrag,mem,end
will display
name to execute command
If you have the specified file, the condition is set, run the command, or run the next sentence. such as if exist Config.sys edit Config.sys
3, if errorlevel the number of orders to be executed
If the return code equals the specified number, the condition is set, the command is run, or the next sentence is run. If the IF errorlevel 2 goto x2 DOS program runs, it will return a number to DOS, called the error code ERRORLEVEL or return code.
The goto batch file runs here
" = = "A" format a:
2, if exist file name to execute command
If you have the specified file, the condition is set, run the command, or run the next sentence. such as if exist Config.sys edit Config.sys
3, if errorlevel the number of orders to be executed
If the return code equals the specified number, the condition is set, the command is run, or the next sentence is run. If the IF errorlevel 2 goto x2 DOS program runs, it will return a number to DOS, called the error code ERRORLEVEL or return
Start application
Realtime starts the application in the Realtime priority category
Wait to start the application and waiting for it to end
Parameters these parameters for transmission to the command/program
Executing the application is a 32-bit GUI application when CMD. EXE does not wait for application termination to return a command prompt. If executed within a command script, the new behavior does not occur.
8.choice command
Choice Use this command to allow the user to enter a character to
Show/Hide system files you need to right-click any folder or file to display the menu
Show/Hide extensions to display menus by right-clicking an empty space in any folder
Right-click to display (hide) extension and system files. bat
Copy Code code as follows:
@echo off
reg delete "hkcr\clsid\{00000000-0000-0000-0000-000000000012}"/F >nul 2>nul
reg delete "Hklm\software\classes\*\shell\display
The terminal-based method introduced today is green, environmentally friendly, and pollution-free ~~You do not need to upload any files to enable the terminal. This method is applicable to Win2k, XP, and 2003.
In this article, the premise is that you have obtained an external shell with the system permission of the other Party through some method ~~
Enable the terminal service without uploading any files.
1. Enable the terminal under WIN 2 K
First, use echo to write a 3389.
1, Lsof IntroductionLsof is a very practical system-level monitoring and diagnostic tool under Linux.It means List Open Files, and it's easy for you to remember that it's a combination of "ls + of" ~It can be used to list the file information opened by various processes, remember: Linux under "All Files",including but not limited to pipes, sockets, directories, devices, etc.So, with lsof, you can get a variety of information about any file that is opened.You can generate a lot of information sim
1 OverviewThis may be a confusing or even confusing topic, but it is also necessary for discussion.In a regular expression, some special characters or character sequences are called metacharacters, such as "?". Indicates that the modified Sub-expression matches 0 times or 1 time. I) "indicates case-insensitive matching modes. When these metacharacters are required to match themselves, they must be escaped.In different languages or application scenarios, the regular expressions and metacharacters
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.