Sign in to follow this  
Followers 0
Amelie

FileWriteLine - how to write a text comment and value

5 posts in this topic

Hi

I'm new to this forum and I have a silly question.

Why does this line only give me the value of $result to the file but not the comment?

FileWriteLine ("C:\Temp\myfile.txt", "comment = " +$result)

Share this post


Link to post
Share on other sites



Thanks ! :)

How do I add current date and time to the comment?

FileWriteLine ("C:\Temp\myfile.txt", "comment = " &$result)

Share this post


Link to post
Share on other sites

How do I add current date and time to the comment?

FileWriteLine ("C:\Temp\myfile.txt", "comment = " &$result)

You really should read the help file...

FileWriteLine ("C:\Temp\myfile.txt", "comment = " & $result & "Time : " & @HOUR & ":" & @MIN & ":" & @SEC & @CRLF)

Cheers


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
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
Sign in to follow this  
Followers 0