Jump to content

What Is Scripting Mean In Scripting.filesystemobject


kenny9239

Recommended Posts

This is the name of the object and class created by Microsoft that enables you to access the file system using your server-side code.This example is using the Windows Scripting Host to show a list of files in a folder. In can be easily modified for use by ASP as well

var fso					= new ActiveXObject("Scripting.FileSystemObject");var aArgs			= WScript.Arguments;var sSourceDirectory 	= new String(aArgs(0));ShowFilesInFolder()function ShowFilesInFolder(){	var files,folder,file;	folder = fso.GetFolder(sSourceDirectory);	files = new Enumerator(folder.files);	for (;!files.atEnd();files.moveNext())	{			var theFile = files.item();		WScript.Echo(theFile.name)	}}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...