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!
Credits 2,343 Posts 636 Joined 2004-03-06 00:00 22-year member UID 19350 Gender Male
Status Offline
Reply to floor 45
This is my execution result. Except for changing the test file path, nothing else has changed. The line "cd.>d\c.txt" is not necessary.
Batch files (Batch File, referred to as BAT files) are a kind of most commonly used executable files under DOS. It has flexible operability and can adapt to various complex computer operations. The so-called batch processing means automatically executing several specified DOS commands or programs in a specified order.
That is, it is to collect the originally executed commands one by one and execute them in batches, and the program file can be ported to other computers for operation, so it can greatly save the tediousness of repeatedly entering commands. At the same time, batch files also have some programming characteristics. It can flexibly control the execution of the program through extended parameters, so it is very practical in daily work. Batch. bat. cmd. Each has its own strengths and weaknesses.
Credits 2,268 Posts 879 Joined 2006-12-19 16:23 19-year member UID 73968 Gender Male
Status Offline
Originally posted by qzwqzw at 2008-7-16 08:20:
Reply to post 45
This is my execution result
Except for changing the test file path
Nothing else has changed
The sentence "cd.>d\c.txt" is not necessary
Finally figured it out, it turns out that there can't be that slash after n..
change f:\111\d\a.txt /nf:\111\d\c.txt /from "nnn" /to " yyy " /in not "。"
Credits 2,343 Posts 636 Joined 2004-03-06 00:00 22-year member UID 19350 Gender Male
Status Offline
It seems that you lack sufficient understanding of relative paths and absolute paths. The \ prefix refers to the root of the current drive. Obviously, because your data file is not on the current drive, it causes an error.