In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Note:
1. For example, because there is no forfiles.exe in XP, you can use the forfiles command by copying the forfiles.exe file under windows2003 to the system32 directory of XP.
two。 This document is applicable to the windows client operating system xp win7/8/10,windows server-side operating system server 2003 to 2008 and 2012 to 2016.
Forfiles.exe and help
Description:
Select a file (or group of files) and execute a command on that file. This helps batch jobs.
Syntax:
Forfiles / p / d / c
1. See what the use of the three parameters listed is: (simple parsing)
/ p specifies the directory in which to look for files, and the default is the current working directory. / d specify a date or number of days to compare whether the last modified date of the file meets the criteria. / c the command executed for each file found.
two。 See what the usefulness of the three parameters listed are: (detailed parsing)
/ p: specify the location where to start the search for files, or the current directory by default if not specified. / m: the wildcard characters used in file lookup, such as "* .log" in the code, are all log files. Of course, you can also specify all log files that start with manmee, such as "manmee_*.log". If you do not specify this parameter, it defaults to "*. *". / d [{+ | -}] [{|}]: specify the last modification time of the file you want to select. "/ d-7" is used above to indicate all files based on the current day and 7 days ago. Of course, you can also specify a specific time here, such as "/ d-08swap 18max 2009" for all files that are earlier than August 18, 2009. Note that the specified time must be in the format "MM/DD/YYYY". / c execute the specified command on all files in double quotes ("). The default is" cmd / c echo @ file ". What is used above is" cmd / c del / f @ path "to delete the specified file. (@ file and @ path here are variables, which will be explained below.
Example:
To copy the files with the last modification date greater than or equal to July 1, 2007 in the C root directory to the D root directory: forfiles.exe / p "c:\" / d "2007-7-1" / c "cmd / c copy @ path d:\" delete the files in the C disk backup directory with the last modification date 10 days ago: forfiles.exe / p "c:\ backup" / d-10 / c "cmd / c echo" Deleting @ file... & & del / f @ path "automatic deletion of disk D test directory last modified 7 days ago file forfiles.exe / p" d:\ test "/ s / m *. * / d-7 / c" cmd / c del @ path "delete the current directory 28 days ago with the extension bkf file (based on the current system time) forfiles.exe / m * .bkf / d-28 / c" cmd / C del @ file / f "setup process: create a .bat file first Write and save required scripts, set up Windows → to manage → scheduled tasks, create new scheduled tasks (set general selection user startup, set trigger run time, set actions to add bat files to be executed)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.