This example shows the customer information in the customer information table. After batch deletion, the user displays the page code sdel.html to dynamically obtain the user information: lt; formaction quot ;__ URL _/sdelete/ quot; method quot; post...
In this example, the customer information of the customer information table is deleted. First, the user displays the page
PHP multi-thread batch collection and download of beautiful pictures implementation code
The use of curl multithreading, In addition, curl can set the request time, in the event of a very slow url resource, you can decisively give up, so there is no blocking, and there are multi-threaded requests, the efficiency should be relatively high
The following is code i
Fssh-Flash speed Batch remote command execution tool source code released, fssh-Flash speed
Fssh, short for flash ssh, is designed to run commands remotely in batches through ssh flash speed. You only need to deploy this script on the master machine without installing a proxy on the controlled machine, the execution time of the tested 120 machines is within 3 seconds.Source
Use the net.exe function provided by windows to start or stop services
The command line format for starting/stopping a service is: net start/stop service name (note: the service must be set to manual start first)
Example:
Take starting and stopping the Oracle11g service as an example (ORCL is the database name ):
Copy codeThe Code is as follows: % start Oracle service %
@ Echo. Start the service ......
@ Echo off
Net start variable levsswritero
Batch code:
Copy codeThe Code is as follows: @ echo off
: Delete historical records of "run", "Search", etc.
Reg add HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer/v ClearRecentDocsonExit/t REG_DWORD/d 00000001
Clear the input recorded in the "run" dialog box to modify the registry. These records are stored in "HKEY_CURRENT_USER
This file Upload class is used to upload leaflets by default. You only need to modify $ inputname = 'Files' to your form name to conveniently Upload files in batches. $ Savename = '': Save the file name. $ alowexts = array (): Set the upload type. $ savepath ='' indicates the save path.*/ The code is as follows:Copy code Class upload{Public $ savepath;Public $ files;Private $ err
This article mainly introduces batch processing printing color Yang Hui's triangle effect code, like a friend can test under Effect Diagram: nbsp; code is as follows: @echo Offamp;color 0e setlocal enabledelayedexpansion mode con:cols=130 lines=130:top cls:: set/p I n= Please enter the number of rows: Set In=23amp;set ab=1amp;set var=64 if "%in%" = "goto top if
Today, while making a page, because hundreds of files, it is impossible to one manual modification, because the middle of the path ID need to be modified, there is a certain regularity, so think about it, feel the ASP is simpler, PHP is the same principle, VBS and JS is a little bit of trouble, because the text too much, You can't document.write so much.
Batch generation must be inseparable from the For loop, here a simple introduction, we read the u
Today, the maintenance staff to find me said, recently to push Win7, temporary desktop cloud did not promote, or the use of manual installation of Win7 way. So, need me to help write a script, probably function is to ghost Win7 before the first export XP IP information, after ghost completion, automatically read this IP information to restore IP settings.Ghost batch processing of IP automatically after installing WIN7/XP
Before actually wrote an XP,
The parameters of the del command/F Forces a read-only file to be deleted./s Deletes the specified file from all subdirectories./q Quiet mode. Confirmation is not required when global wildcard characters are deleted.
Parameters for Rd Command/s In addition to the directory itself, all subdirectories and files under the specified directory are also deleted. Used to delete a directory tree./q Quiet mode/s does not require confirmation when deleting a tree.
C
Q: Use bat batch to delete or modify the items specified in the hosts, for example, for 127.0.0.1 localhosts, can you delete or change the records with local in the hosts?A:
Copy Code code as follows:
CD/D%windir%\system32\drivers\etc
REM First deletes hosts.bak prevent rename failure
Del Hosts.bak
Ren hosts Hosts.bak
for/f "eol=# tokens=1,2"%%i in (
Batch change DNS (recommended):
Copy Code code as follows:
@echo off
:: Determining local Connection Assignment A
for/f "tokens=3,4 delims=="%%i in (' ipconfig ^|findstr/r "Ben") do Echo%%i%%j
for/f "Tokens=1 delims==:"%%d in (DNS.txt) do set a=%%d
:: Please change the following three lines according to the actual situation
echo starts changing pr
Use the bat script to achieve one-click dialing and add routes.
1, create a PPTP VPN dial-up connection.2, right key just built a connection – Properties – Network –internet protocol version 4– Properties – Advanced, the IP settings in the "Use of the default gateway on the remote network" hook off.
Copy Code code as follows:
@echo off
Rasdial VPN user name VPN password
for/f "Tokens=16"%%i in
Copy Code code as follows:
@shift 1
@ setlocal
@ CLS
@ Color A
@ Title DNS Bulk Overflow Personal Edition
@echo ================================================================================
@echo DNS Bulk Overflow Personal Edition
@echo by amxking
@echo 1. Enter the IP segment format you want to overflow: XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX
@echo ================================================
Because the soft encryption service process of the company's internal network server may become stuck at an irregular time, you need to manually close the process and start it again. Every time a similar problem occurs, you always need to use a remote server or enter the data center to operate the machine, but sometimes it is not very convenient at night, but remote passwords and data center keys are not convenient for others, so think of the following solutions.Create a BAT
This file Upload class is used to upload leaflets by default. you only need to modify $ inputnamefiles to your form name to conveniently Upload files in batches. $ Savename: Save the file name, $ alowexts...
This file Upload class is used to upload leaflets by default. you only need to modify $ inputname = 'Files' to your form name to conveniently Upload files in batches. $ Savename = '': Save the file name. $ alowexts = array (): Set the upload type. $ savepath ='' indicates the save path.
Php code for batch obtaining the first letter (Chinese characters, numbers, and English letters)
$ Mysql_server_name = '192. 0.0.1 '; // change it to your mysql database server.
$ Mysql_username = 'user'; // change the username of your mysql database.
$ Mysql_password = 'password'; // change the password of your mysql database.
$ Mysql_database = 'datab
The code for batch replacement of file names in php is as follows:
$ Dir = 'd: \ Program Files \ resource \ application \ Skin \ PNG \ '; // note the path here. add two \ s to the end. The first one indicates the conversion, however, in this case, it is easy to encounter other specific escape characters. you must make a careful judgment as follows:
$ Dir = 'd:/Program Files/resource/application/Skin/PNG/'
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.