传参 // Batch file contents ECHO. 1st=[%1] 2nd =[%2] // command line belows C:/CSW>sample c:/mydocs d:/save 1st=[c:/mydocs] DEST=[d:/save] 结构化语言 1. IF C:/CSW>if SomeText==SomeText echo.yes yes C:/CSW // the space is dynamic ignored C:/CSW>if SomeText== SomeText echo.yes yes C:/CSW C:/CSW>if not SomeText==SomeText echo.yes C:/CSW // How to not ignore the space // Add (the same) fixed text to both sides of a comparison whenever one side might be empty C:/CSW>if (SomeText)==( SomeText) echo.yes C:/CSW // Also this logic will used to judgement on whether the parameter is empty or not C:/CSW>if not (%par1%)==() set src=%par1% C:/CSW>