小编Tom*_*029的帖子

无效号码。数字限制为 32 位精度

在网上找到了这个脚本。它的工作原理是我下载它的基本原因。但我想知道一些事情:

  1. 当脚本尝试将字节划分为 KB、MG 和 GB 时,它会错误显示无效数字。数字限制为 32 位精度。
  2. 文件和目录的总数缺少右括号。

代码:

c:
cd\
@Echo ------------------------------------------------------
@Echo ------------------------------------------------------
@For /F "tokens=*" %%a IN ('"hostname"') do @Set summaryouthost=%%a
@Echo Integrity Check on: %summaryouthost%

@For /F "tokens=*" %%a IN ('"chdir"') do @Set summaryoutchdir=%%a
@Echo Integrity Check For the path: %summaryoutchdir%
@Echo ------------------------------------------------------

@For /F "tokens=*" %%a IN ('"date /T"') do @Set summaryoutsdate=%%a
@Echo Start Date: %summaryoutsdate%

@For /F "tokens=*" %%a IN ('"time /T"') do @Set summaryoutstime=%%a
@Echo Start time: %summaryoutstime%

@Echo ------------------------------------------------------
@For /F …
Run Code Online (Sandbox Code Playgroud)

integer cmd numbers numeric batch-file

4
推荐指数
1
解决办法
7814
查看次数

标签 统计

batch-file ×1

cmd ×1

integer ×1

numbers ×1

numeric ×1