China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 10:10
中国DOS联盟论坛 » 论坛回收站 » Please provide the specific requirements for the batch file you want to compile, such as what functions it needs to implement. For example, what operations it should perform, etc. View 1,912 Replies 2
Original Poster Posted 2010-10-17 13:31 ·  中国 广东 电信
新手上路
Credits 1
Posts 1
Joined 2010-10-15 01:23
15-year member
UID 175929
Gender Male
Status Offline
Well, little sister me, just applied for a job as a burning operator in an electronics factory that makes MP4s (that is, connecting to a computer via USB to install the operating system on the MP4). After installing the system, the MP4 can be used normally. Also, I need to copy all the folders and songs, movies, etc., in the data folder on the desktop to the MP4 disk. The most troublesome thing is that after the MP4 automatically boots up after installing the system, an empty FONTS folder is automatically generated in the removable disk of the MP4. The data copied from the desktop data folder to the MP4 disk already has the FONTS folder. Each time I copy data to the removable disk of the MP4, it prompts whether to replace the folder. I have to manually click the mouse to select all each time. Because there are too many controlled computers, and one computer has 4 MP4s inserted, and one MP4 removable disk has to be clicked once. I have to keep an eye on each computer's prompt to replace and then click to select all. It's very annoying. These things that are本来 simple are not so simple in the factory. One person has to control 6 computers, and one computer has 4 MP4s inserted. For the factory, everything is batch operation. Now everyone should know what batch processing I need. I want a batch processing: [Automatically delete the FONTS folder under each removable disk, then automatically copy all files and folders under the specified folder to all removable disks, and then batch safely delete all removable disks,

,,,,,, Trouble everyone,,,, These problems are solved, my work will become much faster, and the efficiency will be improved. I more hope to have a modern scientific and efficient method to meet the needs of factory production, 
Problem supplement:
In addition, the MP4 models are different. Some models have a 16G disk. After installing the system, the default is the FAT32 file system. It needs to be formatted into NTFS. Please compile another batch processing to batch format all removable disks into NTFS. Please,
Floor 2 Posted 2010-10-17 15:49 ·  中国 广东 佛山 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Little sister, your text formatting is really...
The only thing I used similarly is batch copying things to multiple SD cards.

Anyway, you just let the batch processing keep checking the mobile hard drive. If there are already some media files, don't touch them. If not, copy them over. Just loop and check, right?

We don't have so many MP4s. Simulate the environment, eh (=.=)
Floor 3 Posted 2010-10-17 16:10 ·  中国 广东 佛山 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Give it a try.

Add the loop for deleting folders yourself?
Last time I batch updated the SD card, I used the mountvol command to unmount the volume label... But that was one by one.


@echo off
set src=d:\MP4
:: Specify the path where the source MP4 media files are located.

set feature=视频\演示.avi
:: Specify a relative path of a file to be copied as the basis for judgment

:main
for %%a in (G H I J K L M N O P Q R S T U V W X Y Z) do (
if exist %%a: (
if exist "%%a:\%feature%" (
echo The disk %%a: already has media files
) else (
echo The disk %%a:
xcopy /s /f /d "%src%\*" "%%a:\"
)
)
)
ping -n 2 127.0.0.1>nul
goto :main
pause


[ Last edited by 523066680 on 2010-10-17 at 16:11 ]
Forum Jump: