NO, I don't think so... the LABEL must be a constant.
Maybe there could be a way with some nested IF statement testing what the user enters, or best choice would be the CHOICE command and you'd get an index back and use the IF to route the index received to the proper call or label, but either of these would ONLY be good if the input wasn't unlimited, that is could be any number of any size.
How about a little more info? Like how many possible numbers could be entered and are all going to do different things?
And no, batch processing is severely limited compared to any programing language. It was meant more to automate DOS operations with limited data manipulation. Next step up was the OLD BASIC and a BASIC COMPILER... wasn't 'optimized' but with work and extensions you could do most anything when it was in vogue.
You can STILL get some BASIC versions for Windows --> http://download.cnet.com/BBC-B.....92431.html and others too. http://www.qbcafe.net/en/qbasi.....mpiler.htm.
Still, Visual Basic is another possibility. Windows WILL run these natively if you write a VBS script, here is a SIMPLE one that will time system Reboots (save as ReBoot-Time.VBS on your desktop and then just execute it) :
=====================
Option Explicit
On Error Resume Next
Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, MsgA, AppName, KeyA, KeyB, TimeDiff
MsgA = "Please close all running applications and click on OK."
KeyA = "HKEY_CURRENT_USER\Software\RestartTime\"
KeyB = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\RestartTime"
AppName = "ReBoot-Time"
Set Wsh = CreateObject("WScript.Shell")
PathFile = """" & WScript.ScriptFullName & """"
Result = wsh.RegRead(KeyA & "Times")
if Result = "" then
MsgResult = Msgbox (MsgA, vbOKCancel, AppName)
If MsgResult = vbcancel then WScript.Quit
Wsh.RegWrite KeyA & "Times", left(Time,8), "REG_SZ"
Wsh.RegWrite KeyB, PathFile, "REG_SZ"
Wsh.Run "cmd /c Shutdown -r -t 00", false, 0
else
Wsh.RegDelete KeyA & "Times"
Wsh.RegDelete KeyA
Wsh.RegDelete KeyB
TimeDiff = DateDiff("s",Result,left(Time,8))
MsgBox "Your computer reboots in " & TimeDiff & " seconds", VbInformation, AppName
end if
wscript.Quit
================
HELP and DOCUMENTATION is available on-line to VB.
Irv S.