There are 2 more practical ways to delay processing a batch file in Windows without delaying the sleep function like Linux:1, using the sleep function of wscirpt, precision 0.001 secondsCreate a VBS delay file, and then call it in a batch
Output and standard Error and redirect them together-a single file.Make sure to the redirection "commands" in this order.
Use the >logfile.txt2>errorlog.txt redirect success and error messages to separate log files.
Use >CON to send text to the screen, no matter what, even if the batch file's output is redirected.This could was useful when prompting for input even if the batch
1, want to run the program:C:\Program Files\Windows Media Player\wmplayer.exeC:\Program Files\haihaisoft Universal Player\hmplayer.exe2. On the desktop, "new text document. txt", by right-clicking on the desktop, creating a new -text document, copying the following and saving: Start c:\progra~1\window~1\wmplayer.exe Start c:\progra~1\haihai~1\hmplayer.exe (In batches, in addition to the start command , also note the changes in C:\progra~1\window~1 and
identical to the user name, for example, the user name is Jane, and the public and private key filenames are Jane,JANE.PPK. The public key is placed in the pulic key folder under Freesshd, and the private key is used by the client. About the client FileZilla: Open the Site manager, fill out the site information to be connected and user name and password, if the public key authentication (public key authentication, the user name that column is to fill, the password is not required), you need to
Every time on-line, we must first on the grayscale environment and then to the formal environment. In a grayscale environment, access to the grayscale environment is achieved by automatically acquiring the IP and changing the specified DNS. Concrete how to realize, we can Baidu by ourselves.Create a new text document, change the suffix to bat, open the file, and copy the code:@echo off: StartEcho============Please enter a number to select the next act
the "Trigger" option, click "New", create task Execution time, "Repeat task Interval" after the choice, there is time to choose, is hourly, or every minute, you can choose to modify the time , and then determine.Again to configure the need to perform the "action" is to select the program or BAT file, it is important that the configuration is to select the bat file, in the "Start from (optional)" Here must
Directly on the code:@EchoOffsetlocalsetlocalEnabledelayedexpansionSetPath= "C:\Users\llq\Desktop\test"Setsuf= "*.doc"rem%path% #使用变量 for/F "delims="%%i inch(‘dir/b/s/a-d%path%\%suf%‘) Do(SetH= "%%~Ni for %%j inch(a b c d e F g h i j k l m n o p q R S t u v w x y z) Do SetH= "!h:%%j=%%j!"Ren"%%i" "!h!"%suf%)endlocalNote:About the syntax in the code, do not understand can see my other cmd command syntax, or directly see the help of CMD. Copyright NOTICE: This article for Bo Master original articl
Windows cmd batch processing changes the file name to lowercase and cmd to lowercase
Directly run the Code:
@ Echo off setlocalsetlocal ENABLEDELAYEDEXPANSIONset path = "C: \ Users \ llq \ Desktop \ test" set suf = "*. doc "rem % path % # use variable for/f" delims = "% I in ('dir/B/s/a-d % path % \ % suf % ') do (set h = "% ~ Ni "for % j in (a B c d e f g h I
Windows installation Nodejs:
Node Download address: https://nodejs.org/download/Here is the 64bit.msi version.
Custom Installation path: D:\nodejs
To set the global installation save directory:
NPM config set prefix "D:\nodejs\node_global"
NPM config set cache "D:\nodejs\node_cache\" (first built Node_cache directory)
It is then installed directly into the global directory when the dependency is installed using the NPM-G command.
Install Express:
This article focuses on the use of scheduled tasks to execute the BAT batch file in Windows Server in a timed way, so that you can perform your own tasks on a timed basis.First, Windows Server 2008 differs greatly from the other server operating systems and Windows Server 20
Windows XP to build an SSH-based sftp server, server can be used freesshd,f-secure server, etc.,FileZilla server is not available, before the silly with Filezi Lla to do the server, can not find any configuration options for SFTP, recommended with freesshd, free, simple, intuitive, the client may use the general support SFTP
Backing up Oracle with a bat batch file (provided the Oracle database client is configured)Create a dbbackup directory under the D-Disk directory to build a Dbbak.bat@echo off Echo ================================================ Echo automatic backup script for Oracle database in Windows echo 1. Use the current date to name the backup
Figure 1
If you do not like to use the Ubuntu Server command line, the following content will surprise you. We can also use a graphical interface to manage the command line system. There are also many remote graphical management software, such as SSH Secure Shell Client,FileZilla.
Using a graphical interface is easy to operate, but it also has to pay the price-you cannot operate files other than the user's permissions, which greatly limits its practicality. Therefore, this is why it only provide
When using a batch file, you can use the following method to hit multiple cmd windows, and execute multiple commands in each window.Start is used to start an applicationCmd/k indicates that the window is not closed after the command after the CMD has finished executing. If you want to close the window after execution is complete, use/C. For more information, plea
In windows, the scheduled execution of the batch file C: \> at -- help is invalid. The AT command is scheduled to run commands and programs on a specific date and time. To use the AT command, the scheduler service must be running. AT [\ computername] [[id] [/DELETE] |/DELETE [/YES] AT [\ computername] time [/INTERACTIVE] [/EVERY: date [,...] |/NEXT: date [,...] "
I used to set multiple ip addresses of different network segments on the local machine, and then switch the route so that different network segments can go out through different gateways, you can access multiple networks at the same time. However, I often find that some problems may occur, so I decided to use the most primitive method to solve the problem, that is, to use only the ip address of a certain network segment, in this way, you need to constantly change the IP address. Of course, this
I used to set multiple ip addresses of different network segments on the local machine, and then switch the route so that different network segments can go out through different gateways, you can access multiple networks at the same time. However, I often find that some problems may occur, so I decided to use the most primitive method to solve the problem, that is, to use only the ip address of a certain network segment, in this way, you need to constantly change the IP address. Of course, this
Because I am in a place to often switch between different networks, such as local area network, system intranet and extranet (I will often switch between 3 ADSL networks). I have always used the method is to set up a number of different network segments of the IP, and then switch routes (Route), so that different network segments through different gateways out, you can access multiple networks at the same time to achieve the purpose. However, I found that there are often some problems, so I deci
Batch Modify file permissions in Windows 7
Previously, I set a folder to hide. After I reinstall the system, I found that I did not have the permission to modify the folder and could not be accessed or modified. I had to modify the permissions one by one.Then I searched for the solution on the Internet as follows:In the attachment-> command prompt-> right-click-
See also: http://blog.csdn.net/iw1210/article/details/39313677%date% Output: Yyyy/mm/dd week * (for example: 2008/12/18 Thursday)Reference format:%date:~x,y%x= start coordinates, y= the number of characters from XSuch as:%date:~0,4%-yyyy%date:~5,2%--mm%date:~8,2% to DDIf you remove the date formatted as YYYYMMDD:%date:~0,4%%date:~5,2%%date:~8,2%-->20081218%time% output is: hh24:mi:ss.ms (ex: 10:49:12.17)Reference format:%time:~x,y%x= start coordinates, y= the number of characters from XSuch as:%
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.