Jump to content

Include text to script output


MAS
 Share

Recommended Posts

-------------------------------------------------------------- -------------------------------------------------------------- hello all

i have ascript to output ip of hostname into text file but i want to include some other static text with it

the script :

--------------------------------------------------------------

TCPStartup()

$ip = TCPNameToIP("google.com")

$txtfile = Fileopen ( "ip.txt" ,2)

FileWrite($txtfile, $ip)

--------------------------------------------------------------

i wish to include some text before , after and in the same line of the ip

like that :

--------------------------------------------------------------

text line 1

text line 2

ip is (ip of google goes here)

text line 4

text line 5

--------------------------------------------------------------

any help appreciated

thanks all :mellow:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...