【发布时间】:2014-01-27 21:52:42
【问题描述】:
这是我的代码:
@if (@codesection==@batch) @then
@echo off
title
C:
cd %windir%\System32
set c=echo
:a
%c%abs: Absolute Value
%c%atn: Arctangent
%c%cos: Cosine in Degrees
%c%exp: e Raised to the Power of
%c%hex: Hexadecimal Value
%c%int: Integer Part
%c%log: Natural Logarithm
%c%oct: Octal Value
%c%rnd: Random Number from (0,1)
%c%sgn: Sign
%c%sin: Sine in Degrees
%c%sqr: Square Root
%c%tan: Tangent in Degrees
echo.
if defined a goto b
set /p a=
cls
for /f %%G in ('cscript //nologo //e:jscript "%~f0" "%a%"') do set b=%%G
goto a
:b
%c%%a%=%b%
echo.
goto:eof
@end
WScript.Echo("Math."+WScript.Arguments(0));
我不明白我在哪里使用了不正确的语法,如果有人可以帮助我调整这个脚本,我将不胜感激。
【问题讨论】:
标签: batch-file jscript