Copy files to the system32 batch in the Windows folder of C disk _dos/bat

Source: Internet
Author: User
Now I want to copy the ' FinalData.exe ', ' OfficeDiary.exe ', ' DisplayX.exe ' three programs to ' C:\WINDOWS\ ' from the "C:\Program files\ common green software \soft\" System32 ' and cover the original three, how should write???
Question 1: Does the compilation of batches support long folders and long filenames?
Question 2: Does the batch process support the Chinese folder?
Question 3: Is there a hint when overwriting the original file? If so, how can you let it not be prompted to cover it directly?
@echo off for%%a in (FinalData officediary displayx) do (copy/y "C:\Program files\ common Green software \soft\%%a.exe" "C:\WINDOWS\syst Em32 ") Pause copy multiple files from a Chinese folder to a specified long filename, how to write a batch
--------------------------------------------------------------------------------------------------------------
Copy three files from one folder on your desktop to the System32 folder in the C-Disk Windows folder
The three files in the "ERP database client file" on the desktop Dbnetlib.dll dbnmpntw.dll ntwdblib. DLL copied to the C disk Windows\System32 folder to overwrite the original three files.
I just need a batch, thank you.
1.
@echo off
ren%windir%\system32\dbnetlib.dll dbnetlib.old
ren%windir%\system32\dbnmpntw.dll dbnmpntw.old
ren%windir%\system32\ntwdblib. DLL Ntwdblib.old
cd/d "%userprofile%\ Desktop \erp Database client file"
copy/y Dbnetlib.dll%windir%\system32\
copy/y Dbnmpntw.dll%windir%\system32\
copy/y Ntwdblib. DLL%windir%\system32\
Exit
Rename the original file. Copy the file at the same time. If you do not want to keep the original file, Ren three lines will be deleted.
2.
@echo off
Copy%userprofile%\ Desktop \erp database client file \dbnetlib.dll+dbnmpntw.dll+ntwdblib. DLL%windir%\system32/y
Exit
3.
@echo off
copy/y ""%userprofile%\ Desktop \erp Database client file \dbnetlib.dll "C:\windows\system32\"
copy/y ""%userprofile%\ Desktop \erp Database client file \dbnmpntw.dll "C:\windows\system32\"
copy/y ""%userprofile%\ Desktop \erp Database client file \ntwdblib. DLL "C:\windows\system32\"
Exit
4.
copy/y "%homepath%\ Desktop \erp Database client file \dbnetlib.dll" c:\windows\system32\
copy/y "%homepath%\ Desktop \erp Database client file \dbnmpntw.dll" c:\windows\system32\
copy/y "%homepath%\ Desktop \erp Database client file \ntwdblib. DLL "c:\windows\system32\
Every paragraph on the top is a line, so don't make it 2 when you copy it to bat.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.