Count Arguments to a DOS Batch File without Using Your Fingers and Toes
2011-08-31 10:31
615 查看
@echo off SETLOCAL set argNum=0 set expectArgs=3 for %%i in (%*) do set /a argNum += 1 echo %argNum% if %argNum% NEQ %expectArgs% ( echo 参数不正确! ) ENDLOCAL
相关文章推荐
- Using a batch file to automatically build a Windows CE 5.0 and 6.0 project
- CVE-2014-0050: Exploit with Boundaries, Loops without Boundaries、Apache Commons FileUpload and Apache Tomcat DoS
- How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
- You are using safe update mode and you tried to update a table without a WHERE that uses a K
- Many ways to communicate with your database using jQuery AJAX and ASP.NET
- Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE tha
- BI Java 补丁错误处理 :Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter va
- 在数据库中执行删除delete语句时出现:You are using safe update mode and you tried to update a table without a WHERE
- [GUIDE] How to make a nandroid backup directly to your computer without using sdcard
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- You are using safe update mode and you tried to update a table without a WHERE that uses a K
- rror Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnec
- [SQL Server][FILESTREAM] -- Using INSERT, UPDATE and DELETE to manage SQL Server FILESTREAM Data
- Vi and Vim Autocommand: 3 Steps to Add Custom Header To Your File Automatically
- You are using safe update mode and you tried to update a table without a WHERE that uses a KEY colum
- 数据库 safe You are using safe update mode and you tried to update a table without a WHERE
- Photoshop CS2 RAW : Using Adobe Camera Raw, Bridge, and Photoshop to Get the Most out of Your Digita
- MySQL错误:You are using safe update mode and you tried to update a table without a WHERE that uses a K