VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    I'm using a bat file to track my external ip address, looking for any changes to try and figure out why I'm getting so many demands for secondary verification.

    The fragment shown gives me output of the "time and day" and "ip " on separate lines of the outputted text file.
    I would like it to be on a single line, but can't figure how.
    Any ideas??


    Code:
    (
       REM write information
    echo @ %TIME% %DATE%  : %tad%
       
    echo My External Public IP  : %ExtIP%
      
    )>echo %tad%>>"%LogFile%"

    This is the output to my .txt file.

    Code:
    @ 18:21:15.37 2018-12-20  : 
    My External Public IP  : xxx.x.xx.xx
    Last edited by sambat; 21st Dec 2018 at 14:35.
    Quote Quote  
  2. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    Stumbled blindly on the fix :

    Changed:

    Code:
    (
       REM write information
    echo @ %TIME% %DATE%  : %tad%
       
    echo My External Public IP  : %ExtIP%
      
    )>echo %tad%>>"%LogFile%"
    to:

    Code:
    (
       REM write information
       
    echo My External Public IP  : %ExtIP% @ %TIME% %DATE%  : %tad%
      
    )>"%LogFile%"
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!