Sniken_123 Skrevet 9. oktober 2007 Del Skrevet 9. oktober 2007 (endret) Jeg lurer på hordan jeg kan lage en fil som viser ip informasjon. Jeg vet at jeg bare kan lage en .bat fil med "ipconfig/all" men den forsviner slike fort som du trykker på den.... Så hvordan skal jeg få den til å bli? Endret 10. oktober 2007 av Sniken_123 Lenke til kommentar
NoPain74 Skrevet 9. oktober 2007 Del Skrevet 9. oktober 2007 Jeg lurer på hordan jeg kan lage en fil som viser ip informasjon. Jeg vet at jeg bare kan lage en .bat fil med "ipconfig/all" men den forsviner slike fort som du trykker på den.... Så hvordan skal jeg få den til å bli? Er på litt tynn is her, men kan du bruke dette ? PAUSE Suspends processing of a batch program and displays a message prompting the user to press any key to continue. Prompting the user to continue the program Windows 2000 displays the following message in response to the pause command: Press any key to continue . . . Dividing a batch file into sections If you press CTRL+C to stop a batch program, Windows 2000 displays the following message: Terminate batch job (Y/N)? If you press Y (for yes) in response to this message, the batch program ends and control returns to the operating system. Therefore, you can insert the pause command before a section of the batch file you may not want to process. While pause suspends processing of the batch program, you can press CTRL+C and then Y to stop the batch program Examples Suppose you want a batch program to prompt the user to change disks in one of the drives. To do this, you might create the following file: @echo off :begin copy a:*.* echo Please put a new disk into drive A pause goto begin In this example, all the files on the disk in drive A are copied to the current directory. After the displayed comment prompts you to place another disk in drive A, the pause command suspends processing so that you can change disks and then press any key to resume processing. This particular batch program runs in an endless loop. The goto BEGIN command sends the command interpreter to the begin label of the batch file. To stop this batch program, press CTRL+C and then Y. Lenke til kommentar
Sniken_123 Skrevet 10. oktober 2007 Forfatter Del Skrevet 10. oktober 2007 Funka utmerket det... takker og bukkker Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå