by:zuifeng258
Windows is shared more than a few disks by default, and they are hidden dangers.
In DOS, use the command "net share" to view ...
If you can't get a screenshot, you can only type.
Copy Code code as follows:
@echo off
Echo is automatically deleting admin$ management shares and ipc$ pipeline shares.
NET share admin$/del
NET share ipc$/del
NET share C $/del
NET share d$/del
NET share e$/del
NET share f$/del
Use windows batch processing to implement Simple Mail group FunctionThe company's business assistant is a cute sister paper, it is the kind of background that www.2cto.com will be very eye-catching and eye-catching for dozens of seconds when I see that I want to send various business emails to many customers. ------------------- Cut --------------- many times, due to business dealings, we will send customer
Batch add firewall exception ports in Windows
Copy codeThe Code is as follows: echo off
Cls
Set var = 30000
Set end = 30010
: Continue
Set/a var + = 1
Echo add port % var %
Netsh firewall add portopening TCP % var % ftp_data _ % var %
If % var % lss % end % goto continue
Echo complete
Pause
The following article highlights that you can manually add them in order or bat
MySQL automatic backup batch under Windows2011-05-04 09:16:45| Category: MySQL| Report | Font size Subscription Backup by system timeNote If there are spaces in the MySQL installation path. The. bat file will be copied to the appropriate directory.1. Direct copy by system timenet stop MySQLxcopy Data\*.* d:\bonadb\%date:~0,10%\/y/s/enet start MySQL2. Compress the backup with compression softwarenet st
Now I want to copy the ' FinalData.exe ', ' OfficeDiary.exe ', ' DisplayX.exe ' three programs to ' C:\WINDOWS\ ' from the "C:\Program files\ common green software \soft\" System32 ' and cover the original three, how should write???
Question 1: Does the compilation of batches support long folders and long filenames?
Question 2: Does the batch process support the Chinese folder?
Question 3: Is there a hint w
We use the automatic batch processing program to back up the data. It can generate a backup file on a given day and save the data on a daily basis to a corresponding directory, it should be implemented in combination with windows scheduled tasks.
Method 1
CodeBackup
The Code is as follows:
Copy code
@ Echo off setlocal ENABLEEXTENSIONS: -
displayed comment prompts you to changeWhen a disk is placed in drive a, the pause command will suspend the program so that you can change the disk and press any key to continueProcessing.
6. Call CommandCall another batch processing program from one batch processing program without terminating the parent batch processing program. Call Command accepted for call
Batch commands are required because you want to batch add domain users to Windows Server using a batch command.I this is a pure novice tutorial, on Baidu search some batch processing command feel belongs to the Advanced tutorial, study two days to complete my goal.Let's star
PHP starts windows applications, executes bat batch processing, and executes cmd commands (exec and system functions). exec Functions
Exec or system can call the cmd command.
Directly run the Code:
Copy codeThe Code is as follows:/** Open the windows Calculator */Exec ('start C: WindowsSystem32calc.exe ');
/** Php generates a
%echo /data/local/tcpdump-p-vv-s 0 -w/sdcard/ Capture.pcap >> %p%adb Shell%p%del%p%PauseRun commands in Linux shell using batch fileI need to is able to run the following commands on a rooted Android phone connected to my PC:-O rw,remount/777 /system/app/exitexitAnd then I need to execute the following command on my PC:ADB push: \bin\myapp_signed.apk/system/app/And finally, I need to does some clean up and reboot the phone:755 /system/app/rebootexitex
script file in the same directory as shown in: Double-click the. bat file to run the batch script, as shown in the following instructions: When execution is complete, the value of the JAVA_HOME environment variable is modified to the corresponding JDK version of the installation directory. This batch script only
Windows Bat (Batch)--basic syntax
1. @
If you have it at the beginning of the line, the command is not displayed.
2. Echo
2.1 echo [{On|off}] [message]
Output, Echo.
2.2 On | Off
It is actually a switch command, that is, it has only two states: open and close. So there's the echo on and echo off two commands.
(1) Echo off
Show only execution results
(2) echo on (default)
Show execution commands (
displays Hello World on the screen, in fact all output is the default >con copy c:test.txt f: >nul copy file, and does not display "file copy succeeded" message, but if the F disk does not exist, the error message is still displayed in copy c: Test.txt f: >nul 2>nul does not display "file copy succeeded" message, and F disk does not exist, also does not display
The rename of Perl Classic codeLarry Wall's rename script, which uses only a single-digit line of code, constructs a super-powerful batch file renaming tool:Comments:1. # touch rename.perl // Create a file:rename.perl, the contents are as follows. 2. # chmod +x Rename.perl3. # CP rename.perl/bin/ 4. # rename.perl ' s/gongxu/leibie/g ' * // gongxu is replaced with leibie .
#!/usr/bi
. Accept the default, click Next to continue:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/AC/wKiom1XWj-LSbZIMAAEdBXnX9wo604.jpg "/>4. Wait for the WIM creation to complete:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/A9/wKioL1XWkfLhnVeVAAGyJqLTh1E485.jpg "/>5. Click Finish to complete the creation:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/AC/wKiom1XWj-KDDwE0AAJkcpGz4wI239.jpg "/>6. At this point we check the Deploymentshare/boot directory to
Windows under Bat batch, automatically gets the last modification time of the file, and then deletes the file number of days before the specified date, requires Windows Support Forfiles command, XP and the above system with forfiles command.
Deletes a
In fact, the system variables that can be used in batch processing are the environment variables in my computer.The following is the original text. You can take a rough look at it and have an impression when using it.
As we all know, there are many system variables in batch processing, but we have never heard of them unless we often use them. Let's talk about all the system variables below.% Allusersprofil
following code
The code is as follows
Copy Code
net stop MySQLxcopy C:mysqldatabbs*.* c:db_bakbbs%date:~0,3%/ynet start MySQL
You can then use Windows Scheduled Tasks to execute the batch script at timed intervals. (For example: Perform Back_db.bat 3 o'clock in the morning every day)Explanation: Backup and restore operations are relatively simple, integrity is relat
In Windows, the batch processing of Port Link count statistics is semi-Original. It refers to a batch processing of windows directory and file count statistics from Baidu Library, it is currently used in online systems and called using vbs script files. The statistical funct
:
"C:\Program files\winrar\winrar.exe" A-r-ibck-p123456-y e:\wwwroot\default\%date:~0,10%-webdata.rar E:\wwwroot\ Default\webmysql\*.*
Delete copy data
e:\wwwroot\default\webmysql\* is a backup directory and must be removed for easy next backup. Otherwise it's easy to repeat.
Copy Code code as follows:
DEL/S/q e:\wwwroot\default\webmysql\*
Backup Task DownloadsDescription
Download a command from a Web site to a specified directory
Copy Code code
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.