How to? A very simple question re. the current line number in a batch file...

May 24, 2010
Northlake, Il
Is there any way to get the line number of the currently executing statement in a batch file? Something like "blah blah blah error on line 25 in batch file abcdef", for instance. I was thinking something like an internal variable ("%_LineNumber", for example) but searching the docs I'm not finding anything...

- Dan
May 24, 2010
Northlake, Il
Thank you, Steve, I'm laughing as I type this!:) I figured it was something as simple as that but I honestly would never have guessed "_batchline". Makes total sense in hindsight, however. Thanks again!
Similar threads
Thread starter Title Forum Replies Date
M What am I doing wrong in this (very simple!) code? Support 3
vefatica Something got very slow (very recently) Support 1
K_Meinhard Very small nit in german Options dialog Support 1
vefatica ECHO is very slow Support 9
R Very slow performance with TCC-RT Support 2
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13
Patulus GLOBAL command is very slow Support 28
greyfairer Very slow startup since last Windows 7 Update (14.03.59 x64) Support 9
vefatica Very strange console font corruption Support 3
M How to? Work around an unexpected and very inconvenient behavior of TCC... Support 26
A mkdir and rmdir very slow Support 5
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
K alias creation very slow Support 6
H Very odd issue with Help in 12.10.67 Support 3
H V12 UNZIP very slow under certain circumstances Support 3
L Very long startup times - solved for me Support 15
A Selecting text is very dificult with a background image Support 1
A TCMD takes very long to start up Support 19
M Very nice forum Support 0
samintz How to? TPIPE /simple=61 Support 6
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
H TPIPE /simple=4 Support 12
T How can I send a simple parameter to a script, in tc 25? Support 2
C No simple way to tell new Alerts Support 8
P Simple RegEx copy Support 9
C WAD tpipe /simple=28 Support 8
C tpipe /simple=28 error Support 5
P WAD TC x64 crasches with a simple dir command Support 18
M Maybe Maybe I'm being stupid (again), but a simple question... Support 4
C Simple .bat question - dump contents of 2 dimensional array Support 2
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
M Simple question about "Function" command... Support 4
M A simple question related to the "dir" (and "pdir") commands... Support 5
P "Simple question" concerning insert/overstrike mode Support 17
D Some feedback on simple batch file Support 2
C forum Posting Question... Support 3
C question re: Move Support 3
S How to? Upgrade Question: What supporting documentation is required at time of purchase? Support 2
Peter Murschall Documentation Question to %@PSHELL Support 4
Fross Tab Question Support 6
Fross Quick Function Question Support 17
Dick Johnson Question about the Touch command Support 0
rps Documentation "Copy+Paste+run" question Support 2
vefatica SFTP question Support 17
vefatica Question about IPWorks Support 0
C How to? SHORTCUT question..... Support 6
vefatica TPIPE, crash and question Support 1
C Question / Suggestion Support 1
MickeyF Another TPIPE question Support 6
vefatica Another @EVERYTHING question Support 4

Similar threads