Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey, I would like to know if there is a batch file code, for the first time i open the file it goes to a certain area (area= :menu ) and then the second time i open the batch file it goes to a diffrent area (second area= :menu2)

More detail would help, what sort of file? do you mean a different start point within the same file?

i don't think there is a built-in command for this, however you
can do the following (replace ~whatever with your own text):@echo off if exists ~whatever.ext goto ~secondrun :~firstrun echo ~"this program has been run before" >> ~whatever.ext --stuff to do first time-- goto end :~secondrun --stuff to do after first time :endif you're having trouble understanding it, just ask
(\__/) this is bunny
(='.'=) copy bunny into all your signatures
(")_(") to help him gain world domination!

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |