|
|
|||||||
I know how to get the username of the logged on user, but I need to take that information and put it in an HTML file. HTML: I need the script to generate this HTML file. HTML: Code: CONTENT="5; URL=C:\Documents%20and%20Settings\[b]@USERID[/b]\directory\file.html"> Is that possible? |
||||||||
|
|
|||||||
You can create the HTML file with the Open() function. When the file is there you can write to it as a txt file and just write the HTML stuff and the viewable content to the file with writeline(). For example: Code:
|
||||||||
|
|
|||||||
you freakin rock dude!!! |
||||||||
|
|
|||||||
lol |
||||||||
|
|
|||||||
Quote: LOL Good to hear that at least one person likes me |
||||||||
|
|
|||||||
It would be better to store the data in a var and use the WRITELINE only once when needed. Using WriteLine over and over can be a semi-expensive operation. Something like this Code:
|
||||||||
|
|
|||||||
However, you will have to adhere to proper HTML markups. A base structure would be Code:
|
||||||||
|
|
|||||||
unless the page is loaded by: - ie directly. it doesn't care about those tags - http server that automatically adds the tags |
||||||||
|
|
|||||||
You get the idea matthewst ? If you look at the MyComputerInfo script on http://www.kixhelp.com it outputs to HTML as well. You could look at it to see how I'm doing it. Not saying that is 100% the best way, but is one way. ` |