Quantcast
Channel: Classic ASP
Viewing all articles
Browse latest Browse all 488

ASP error 80070002 on NameSpace with Zip file

$
0
0
<div class="container"> <div class="body">

New to ASP and kind of making a stab in the dark here so all apologies if I'm in the wrong place.

Trying to update an old web site in ASP (though not .net) and need to unzip files.

In MS Word VBA this code runs on the server that is serving up the ASP page, so I'm relatively sure the server has everything I need to use this code (Windows Server 2003 R2).

    ZipFile ="V:\z_ScheduleProjects\014\TestFiles\AdamsPapers_DOTM.zip"Set objshell = CreateObject("Shell.Application")Set FilesInZip = objshell.NameSpace(ZipFile).Items
    Debug.Print FilesInZip.Count

Running in ASP however I'm getting an error 80070002 on the NameSpace line trying to get the items in the zip file.

I've not been able to find a definitive answer as to what that error code means so my first question is what is that. Is there a list some where of these error codes?

Second question would obviously be why would it run in VBA but not the ASP.

Thank you,
Ken

</div> </div>

Viewing all articles
Browse latest Browse all 488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>