In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Clerk, network management skills: Windows command line bat/cmd batch script writing application file management application
The 1.4.1bat script commands COPY to copy to
For file management batches:
New _ MD
List _ DIR
Name _ REN
Copy _ COPY
Move _ MOVE
Delete _ DEL
Command:
Copy
Copy [source file path] [source file name] [destination path] [destination file name]
Complete command: don't be confused by so many attribute parameters, as long as we know that there are parameters to use, don't worry about them now.
When the general application can not meet the requirements, you can try to add the following parameters.
Start running CMD and enter help copy
COPY [/ D] [/ V] [/ N] [/ Y | /-Y] [/ Z] [/ L] [/ A | / B] [source file path] [source file name] [/ A | / B]
[+ [source file path 1] [source file name 1] [/ A | / B] [+.]] [[destination path] [destination file name] [/ A | / B]]
/ A represents an ASCII text file.
/ B represents a binary file.
/ D allows you to decrypt the target file to be created
/ V verify that the new file is written correctly.
/ N when copying a file with a non-8dot3 name, use a short file name whenever possible.
/ Y does not use prompts to confirm whether to overwrite the existing target file.
/-Y use the prompt to confirm whether you want to overwrite the existing target file.
/ Z copies networked files in rebootable mode.
/ L if the source is a symbolic link, copy the link to the destination instead of the actual file that the source link points to.
There is another Xcopy that you can take a look at for yourself. now you can know that there is such an order.
PS: there are spaces to be enclosed in quotes.
Batch script
Before writing, let's set the "folder options" and uncheck the "hide the extension of the known file type".
1. Use the command to copy the file "copy me .txt" to the "destination folder"
Copy copy me. Txt destination folder
two。 Use the command to copy the file "copy me .txt" to the current directory and rename it "copy me 11.txt"
Copy copy me. Txt copy me 11.txt
3. Use the command to copy the file "copy me .txt" to the new "destination folder 1"
Md destination folder 1
Copy copy me .txt destination folder 1
4. Use the command to copy the file "copy me .txt" to the specified directory "C:\ destination folder"
Copy copy me. Txt C:\ destination folder
5. Use the command to copy the file "C:\ bat command batch script writing application file management entry\ 1.4.1bat script commands COPY copy to\ copy me 1.txt"
To the specified directory "C:\ destination folder"
Copy "C:\ bat Command batch script Writing Application File Management introduction\ 1.4.1bat script commands COPY copy to\ copy me 1.txt" C:\ destination folder
6. Multiple file copies specify some files to the "destination folder"
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.