IvanCodin Posted July 13, 2007 Share Posted July 13, 2007 I create several variables and want to send them to a file. I have played with the ClipPut command and am having trouble figuring out how I would do this. I am new to programming and would appreciate any assistance you could provide. This is a snippet of the code: ClipPut($var1 & $var2 & $var3 & $var4) $bak = ClipGet() MsgBox(0, "Clipboard contains:", $bak) I want the output of this to create a file that looks like this: Welcome $var1 !!! Your account has been activated. Your login is $var2 and you password is $var3 You password will expired in $var days. Link to comment Share on other sites More sharing options...
poisonkiller Posted July 13, 2007 Share Posted July 13, 2007 Dim $var1 = "Var1", $var2 = "Var2", $var3 = "Var3", $var4 = "Var4" FileWrite("textfile.txt", "Welcome " & $var1 & " !!!" & @CRLF & "Your account has been activated." & @CRLF & "Your login is " & $var2 & " and you password is " & $var3 & @CRLF & "You password will expired in " & $var4 & " days.") Link to comment Share on other sites More sharing options...
Leighwyn Posted July 13, 2007 Share Posted July 13, 2007 (edited) edit: beaten to it while writing my reply, basically same code so I removed Edited July 13, 2007 by Leighwyn Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now