Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、私はできますか
echo 3 + 5
と取得し8ますか?
8
日付を使って計算することはできますか?
set /a数式の計算に使用できます。
set /a
set /a x=3+5 echo %x%
編集:ここにワンライナーがあります:
@for /f usebackq %i in (`set /a 3 + 5`) do @echo %i
最初の質問では、&を使用してコマンドをチェーンすることにより、1行でそれを行うことができます。
set /a x=3+5 & echo %x%
少なくともこれはwindows7で動作します