One.bat:
Code: Select all
@echo off
set/p a="> "
echo %a%
pause
exit
:secretlabel
echo Secret
pause
exit
What i want to do is, when now i open two.bat, it will open secretlabel.
You say - you could do that easily by scanning if two.bat is running and then go to secretlabel
But.
The thing is, i don't wanna hardcode any stuff into one.bat. Which means - i wanna pretty much "hack" one.bat and make it go to :secretlabel which would otherwise be inaccessible.
I'm pretty sure it's not possible, but if it is possible, tell me how