Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieve computer name

Status
Not open for further replies.

samme42

Programmer
Sep 11, 2003
3
US
Hi!

I have a stand alone program in which I need to retrieve the computer's file name to use to create a text file. The code I currently have is:

function WriteToFile(){
var TristateFalse = 0;
var ForAppending = 8;
var fso = new ActiveXObject("Scripting.FileSystemObject");
var newFile = fso_OpenTextFile("c:\\SafetyFile.txt", ForAppending, true, TristateFalse);
newFile.WriteLine(document.forms.ReportPage.name.value);
newFile.WriteLine(document.forms.ReportPage.number.value);...

Can anyone help me? Thanks in advance!!
sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top