Find an article on the Internet titled PostgreSQL windows automatic backup script
Http://blog.it580.com/1910
I thought it was good. After a try, I found that the execution of the batch processing file was stopped and I was prompted to enter the password.
> Pg_dump-u Postgres-W database1> C:/backup.tar> Password:
The method for automatically entering the passwo
Find a good example of learning Bat program code to share with you, the specific code is as follows:
@echo off
Route print-4 "10.0.0.0" | find "10.0.0.0" > Route_list
set gw=
for/f "Tokens=1-5"%%a in (' Typ E route_list ') do (
if not%%c "= =" (set gw=%%c)
)
if "%gw%" = "" (echo "fail to get eth0 default GW" amp; goto Error)
Route print-4 100.64.0.0 | find "%gw%" > NUL
if not "%errorlevel%" = "0" (
route-p Add 100.64.0.0 mask 255.192.0.0%gw% > NUL 2>1
)
if not "%errorlevel%" = = "0" (E
Reprint to http://my.oschina.net/u/660932/blog/117929One@echo offSetlocal enabledelayedexpansion:: Coder by Mark_li Powerd by IBAT 1.6CD "C:\Program files\mysql\mysql Server 5.5\bin":: Database name@set db=hrms:: User Name@set Username=root:: Password@set password=:: SQL Script to execute@set sqlpath= "C:\Program files\mysql\mysql Server 5.5\test_hrms.sql":: Connection to MySQL database and execute SQL script-F script execution, error continues execution--default-character-set Specifies the enco
first of all, let's introduce what is SFTP. is a secure file transfer protocol. You can provide a secure encryption method for transferring files, and the syntax and FTP are basically the same. It is also part of SSH. The second step is to introduce you to the SFTP service under Linux server.1. Open the SFTP service on
files to the Blogger server. SFTP itself does not have a separate daemon. it must use the sshd Daemon (the default port number is 22) to complete the corresponding connection operations.SFTP is very secure. However, because this transmission method uses encryption/decryption technology, the transmission efficiency is much lower than that of ordinary FTP. if you have higher network security requirements, you can use
General Usage of ssh client and sftp File Transfer in linux-Linux Enterprise Application-Linux server application information. The following is a detailed description. I used to use ssh to connect to the server on windows, and I usually use putty.
This period of time has been working on linux. Because linux generally comes with an ssh client, that is, an ssh c
SecureCRT sftp upload/download files
Remote Login IP
Click Sftp in the SECURECRT session
3.cd/home/dowload Linux platform switch to/home/dowload directory4.CD D:\ Windows platform switches to D drive5.put file name uploaded under/home/dowload directory6.get file
Windows Batch BasicsFiles that have the extension bat (which can also be cmd under nt/2000/xp/2003) are batch files.* = = =======================================. BAT is a DOS batch file. cmd is another batch
. Here we will introduce a slight change to the method and idea to check other Trojan scripts. Then we will change it and add the parameter and port and information list files, the script automatically detects all Trojans. Haha, isn't it fun? The combined commands and pipeline commands are also used in the script, which will be detailed later.
Example 4: Use batch processing to automatically clear system spam. The script is as follows:
@ Echo off
If
Windows batch files do not have a Linux-like sleep function for latency processing, there are 2 more practical ways to implement latency:
1, the use of wscirpt sleep function, precision 0.001 seconds
Create a VBS delay file, and then invoke it in a batch file, using the WS
Script For batch installation of Windows Patches
1. Create the install. BAT file2. edit the file and enter the script.
CopyCodeThe Code is as follows: @ echo off
For % I in (*. EXE) do % I/Passive/norestart/nobackup
3. Run the script in the same directory as the patch.
In fact, the for command is used for batch
The scope of the script in this article applies:1) Detect whether some IP address is occupied;2) detect the existence of some devices in the network;3) batch detect if there are conflicting machines in the environment before assigning a new IP addressThe above detection is based on the ICMP ping message, all devices are required to allow Ping, the device is disabled ICMP policy, firewall prohibit ICMP packets and so on is not within the scope of this
How to back up Oracle batch processing on Windows (with scheduled tasks or third-party timing software, you can achieve automatic backup), oracle Batch Processing@ Echo start to back up oracle Data@ Echo offSetSet curdir = "D: \ backup"Echo % curdir %Set t1 = % Time :~ 0, 1%If "% t1 %" = "" set t1 = 0Set td = % Date :~ 0, 4% % Date :~ 5, 2% % Date :~ 8, 2% % t1 :
Script to bulk install Windows patches
1. Create Install.bat files
2. Edit the file and enter the script
Copy Code code as follows:
@echo off
For%%i in (*.exe) do%%i/passive/norestart/nobackup
3. Put the script in the same directory as the patch can be executed.
In fact, the bulk installation is implemented through the for command
The following is a
there are hundreds of folders, I want to make a folder into a compressed file (if too many images are compressed together, mangameeya reading speed will also be affected ). If the mouse points are compressed one by one, the hand gets cramps. For example, I want to change the folder on the left to the rarfile on the right.
So I found the software for batch compression on the Internet, but I tried it and f
---------------for%%C in (%*) do ( for/l%%i In (3,1,4) do echo%%c-%%i )Run: test.cmd a b , enter the following:AB---------------a1a2b1b2---------------a-3a-4b-3b-4Command List
Version: Microsoft Windows XP [version 5.1.2600]
For more information about a command, type: HELP 命令名 view.
Command ListASSOC Displays or modifies file name extension associations. At Schedules commands and programs to
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.