Just to work soon, just familiar with the company's a project, the source program on the server, I put the source program down in the Windows Client vs2010 edit, each edit if you want to run and the server to the source program, save the newly modified file to the server, every time feel good trouble. Suddenly remembered to do the file synchronization problem, ho
gb2312-t UTF-8 aaa.txt> bbb.txt
This command reads the aaa.txt file and converts it from gb2312 to utf-8, and the output is directed to the bbb.txt file.
3. file name encoding conversion
Convmv can convert the Chinese file name of GBK-encoded files in windows into UTF-8 en
Thinkphp regularly executes the php file windows System Task plan implementation ideas are as follows:
A batfile is executed at a time using the winmtr task execution function. the php.exefile is used in the batfile. php.exe can pass parameters to specify the class and method to be executed.
The method is as follows:
1. enable cli support for thinkphp
1. tp supports cli command mode. the path
Next let's take a look at a windows scheduled cmd command line to run the PHP file instance. Here we mainly use the windows scheduled task function.
In Windows, you can use php.exe to execute the PHP file, and then write the command to bat for scheduled execution, which is
I found some methods on the Internet to execute PHP scheduled tasks in WINDOWS. one of them was completely written, but unfortunately I did not pass it. Finally, I had to combine the methods of various schools in order to run successfully here. 1. write a PHP program named test. php. the content is as follows:
The code is as follows:
$ Fp = fopen ("test.txt", "a + ");
Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");
Fclose ($ fp );
?>
First, how to convert files:
The format of line breaks for DOS/Windows and Linux/Unix files is different. DOS/Windows-based text files have a CR (line breaks) and LF (line breaks) at the end of each line ), UNIX text only has one line feed.
1. Move the files in Dos/Windows to Linux/Unix.
Although many programs do not care about CR/LF text files in DOS/
Windows components.Do not forget anti-virus software.
Even if you have security protection for the gateway and run personal anti-virus software, you should still run enterprise-level anti-virus software on your file server. Most enterprise products allow you to update virus data from local servers (or even software running by other users on your network), but if your f
Use the PHP header in the business to export the DOC file, get the value to the page, and read the corresponding data output to download the DOC file. The user proposed the need for batch, So he designed the JS to loop out the corresponding number of windows. open (), input different values to the page, and output the
Work encountered the need to change the batch of rules to rename the problem, check the use of batch processing can quickly solve the problem, recordedCreate a bat batch file Rename.bat with the following:@echo offSet a=00Set b=10Setlocal enabledelayedexpansionFor%%n in (*. JPG) Do (set/a A = a + 1If!a! LSS!b! (ren "%%
The Cwrsync is an rsync software package based on the Cygwin platform that supports Windows efficient file synchronization for Windows, Windows, Linux, and Linux for Windows. Since Cwrsync has integrated the Cygwin class library, it is possible to save Cygwin packages when
high, it is obviously not suitable to use scheduled tasks.
So I hope you can give me some advice. it would be better to give a simple example. thank you!
------ Solution --------------------
It seems that you can only use scheduled tasks or PHP for execution.
PHP code
Ignore_user_abort (); // close the browser and run the PHP script. set_time_limit (0); // use set_time_limit (0) to allow unlimited execution of the program $ interval = 60*30; // run do every half an hour {// Here is the co
Window
People in the day-to-day Office applications, unavoidable with a variety of documents to deal with, the most commonly used is the word and WPS files. Then, over time, you may face a number of file formats and thousands of files, when you need to find a specific document, you will have a headache, so many files, how to find AH. Don't worry, this article will show you how to quickly find the files you need so that you can save time and improve yo
. Because this feature is intrinsic to the Windows 2000 operating system, the switch is ignored. Accept this switch only for compatibility with previous versions of MS-DOS.
/q
Suppresses the display of XCOPY messages.
/F
Displays the source and destination file names when copying.
/L
Files are not copied, only the files to be copied are displayed (listed).
/d[:d ate]
Copies only those source files that have
1. Write a PHP program named test. php. The content is as follows:Copy codeThe Code is as follows:$ Fp = fopen ("test.txt", "a + ");Fwrite ($ fp, date ("Y-m-d H: I: s"). "success! \ N ");Fclose ($ fp );?> The program writes it boldly. It's okay to use include \ require.2. Create a Bat file named test. bat. The content is as follows:Copy codeThe Code is as follows:D: \ php \ php.exe-q D: \ website \ test. php// Change the Directory 3. Create a
1. Use the iconv command to encode and convert the File Content
Usage: iconv [option...] [file...]
The following options are available:
Input/output format specifications:
-F, -- from-code = Name Original Text Encoding
-T, -- to-code = Name output Encoding
Information:
-L, -- list lists all known character sets
Output Control:
-C: Ignore invalid characters from the output
-O, -- output =
), d$ is a shared disk, K3log is the file on the disk, I only need this file to share this file.If you often need to restart the file, this command is written to/etc/fstab set to boot 3. Set the timer task shell scriptEof#!/bin/bashFor i in ' find/home/mount_k3log-name ' *.log 'Do Echo $iIconv-f gb2312-t UTF-8 $i-o/home/k3log/' date-d ' yesterday ' + '%y%m%d '.
site. In Windows systems, the Convention 127.0.0.1 as the IP address of the local computer, and 0.0.0.0 is the wrong IP address. The image below is a hijacked hosts file.
3. If, in hosts, write the following:
127.0.0.1 # to screen site A
0.0.0.0 # to screen the site B
In this way, when the computer resolves domain A and b, it resolves to the native IP or the wrong IP, and achieves the purpo
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.