Shift



ļλá


﷨



shift 






	




ע


  shift ѡչһʹ

 չĬãshift ֧ /n ѡѡ֪ͨڵ n ʼģn  0  8 κһֵ磬

SHIFT /2

 Խ %3 Ϊ %2 %4 Ϊ %3 ȵȣ %0  %1 ֲ䡣
    
 shift Ĺԭ
	
 shift ͨÿƵǰһУ %0  %9 ֵҲ˵ %1 ֵƵ %0%2 ֵƵ %1ơ׫дκĿĲִͬļʱǳá
    
 ʹ 10 ϵ
	
 Ҳʹ shift Խ 10 ļָ 10 ϵĲʮ (%9) ֮ĲΪ %9һθһ
    
	  %*  shift һʹ
	
Shift  %* ûӰ졣
	 ָ
	
 ûз shift ִ shift 󣬲ָܻǰڵĵһ (%0)
	









 ļ Mycopy.bat ʾʹðĿ shift ļһļƵضĿ¼Ŀ¼ļʾ


@echo off
rem MYCOPY.BAT copies any number of files
rem to a directory.
rem The command uses the following syntax:
rem mycopy dir file1 file2 ...
set todir=%1
:getfile
shift
if "%1"=="" goto end
copy %1 %todir%
goto getfile
:end
set todir=
echo All done

XOX



