Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,041 of 68,980    |
|    John Gray to All    |
|    In second batch file, find the name of i    |
|    07 Sep 17 00:35:27    |
      From: jgqued@gmail.com              In a called batch file, I would like to determine the name (as in %~n0) of the       batch file which called itme, but without passing this name as a parameter.       Is this possible?       In second batch file,       I've done some searching in this group but can only find the suggestion to       give the name of the calling batch file as a parameter.              Trivial example:              :: Caller.bat       call called.bat       exit /b              :: Called.bat       :: some code to find the name of the calling batch file       echo Called.bat was called by %name-of-caller%       goto :eof              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca