Jump to content

How to add strings?


Recommended Posts

I want to output a line that would list the date, time, and some other info for a log file.

I tried the folloing

FileWriteLine($ofile, "@MON-@MDAY-@YEAR @HOUR:@MIN:@SEC other stuff")

But that just printed out exactly that line without substituting numbers for the tokens. so I tried this

FileWriteLine($ofile, @MON+"-"+@MDAY+"-"+@YEAR+" "+@HOUR+":"+@MIN+":"+@SEC+" other stuff")

But that cause an output of a single int

I tried looking in help file and the faq, but didnt see anything either.

Thanks!

RMSe17

Edited by rmse17
Link to comment
Share on other sites

Might want to have a look at _FileWriteLog

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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...