View Full Version : i get error when use GetFolder object...
NinjaTurtle
01-16-2003, 12:40 PM
dear,
i found that my OS cannot run this ASP code:
set f= fso.GetFolder(path)
the process run never end....
and i try to delete this line of code its run the rest of code, i guess my IIS without this Getfolder object.... how to install it? bcos i also found that few object i miss out in my OS, anyway to check this out?
im using Win XP, IIS 5.1
i try in NT Server, its work....
if cannot use Getfolder object, then what else i can use????
head8k
01-16-2003, 01:34 PM
The getFolder method cannot be 'un-installed'. There is more likely some problem with the way you are using it.
What is the value of the variable 'path' you are passing to the getFolder method? If it doesn't exist on your webserver (i.e. the directory has never been created) you will get an error.
Roelf
01-16-2003, 09:13 PM
Originally posted by NinjaTurtle
if cannot use Getfolder object, then what else i can use???? GetSpecialFolder() gives access to hidden, system and other foldersnot accessible by getfolder.
Perhaps the file/folder restrictions are set so that the anonymous internet user (this is probably the user who wants access) doesnt have access to the folders. If you set the correct user for the internet account it will probably work
NinjaTurtle
01-17-2003, 01:18 AM
but i hardcoded like this:
path = "c:\inetpub" 'i think this folder is default created by Win XP.
Set f = fso.GetFolder(path)
Morgoth
01-17-2003, 03:58 AM
LOL
Hold on. NinjaTurtle... Are you running IIS on your computer now? Do you have Norton Anti-Virus installed and running?
If so, your FSO commponent will not run until you turn off Script Blocking.
Norton Anti-Virus, 2000 - 2003 must have Script Blocking turned off for the FSO commponent to work.
http://www.iisfaq.com/default.aspx?View=A387&P=170
Happy? I sure was when I was told about this article.
NinjaTurtle
01-17-2003, 05:33 AM
i am using NAV 2002. ok i will try it at home...
Morgoth
01-18-2003, 10:55 PM
Was I right?
Because I have never used FSO.GetFolder() before, and I just assumed this was the problem.
NinjaTurtle
01-20-2003, 01:41 AM
Yes, u r right!!!
TQ....
whammy
01-20-2003, 02:03 AM
Good guess, Morgoth! :)
Morgoth
01-20-2003, 05:46 AM
I had the same problem for 12+ months. I own.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.