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-08-12 07:17
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Two questions: The usage of %1 %2 in 4dos clipboard View 2,625 Replies 1
Original Poster Posted 2002-11-21 00:00 ·  中国 陕西 西安 教育网
初级用户
★★
孤胆枪手
Credits 688
Posts 148
Joined 2002-10-26 00:00
23-year member
UID 63
Gender Male
From 陕西
Status Offline
Seeing the 4dos help, it seems there is a clipboard. Who knows the specific usage? Also, who knows the usage of %1 %2, etc.? Thanks! [em28]
我:╭∩╮(︶︿︶)╭∩╮。靠!!!
Floor 2 Posted 2002-12-11 00:00 ·  中国 浙江 杭州 华数宽带
初级用户
Credits 124
Posts 7
Joined 2002-12-09 00:00
23-year member
UID 448
Gender Male
Status Offline
Let me talk about the usage of %1 %2.

% represents a parameter. A parameter refers to the string added after the file name when running a batch file. Variables can range from %0 to %9. %0 represents the file name itself, and strings are represented in order from %1 to %9.
For example: There is a batch file named t.bat under the C: root directory. The content is type %1 type %2
Then running c:\t a.txt b.txt will sequentially display the contents of the a.txt and b.txt files.
Forum Jump: