Results 1 to 2 of 2

Thread: Scripting.FileSystemObject(urgent)

  1. #1
    Join Date
    Dec 1969

    Default Scripting.FileSystemObject(urgent)

    Hi<BR> I have a function in VBSCRIPT which check to see if the file exists, if it does it deletes the file but for some reason, I get ActiveX component cant create object &#039;Scripting.FileSystemObject"<BR><BR>Does anybody know why I get that error? Please help me ASAP Thanx in Advance<BR><BR>my code<BR>&#060;script language="vbscript"&#062;<BR>sub form2_OnSubmit ()<BR> Dim test, strFileName, bolIndexOnServer<BR> strFileName = form2.ddDrive.value & "Index.txt"<BR>Set FileStreamObject = CreateObject("Scripting.FileSystemObject")<BR>bolI ndexOnServer = FileStreamObject.FileExists("\octInetPub-octwwwrootCDProjectTempIndex.txt")<BR> <BR>if bolIndexOnServer Then<BR>Set FileStream1 = FileStreamObject.GetFile("\octInetPub-octwwwrootCDProjectTempIndex.txt") <BR>FileStream1.Delete true <BR> end if<BR>end sub<BR>&#060;/script&#062;

  2. #2
    Steve Cimino Guest

    Default RE: Scripting.FileSystemObject(urgent)

    Since you&#039;re executing on the client, you need to have SCRRUN.dll on the client. This dll doesn&#039;t come with Windows 95.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts