|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
SCripting.FileSystemObject probelm
hi,
I havw written this code in ASP Dim oFSO Dim oTempFolder Set oFSO = Server.CreateObject("Scripting.FileSystemObject") Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder) Response.Write "<br>Temporary Folder Name is " & oTempFolder.Name Response.Write "<br>Temporary Folder Path is " & oTempFolder.Path It hangs forever on the line Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder) However it works perfectly if I write the same code in VB Application. Can anybody tells me what's wrong in it. Thanks in advance Regards, Jehanzeb |
|
#2
|
|||
|
|||
|
In VBScript TemporaryFolder should be explicitly declared. Try adding the following:
Const TemporaryFolder = 2 |
|
#3
|
|||
|
|||
|
I have tried this too, but still it hangs forever
|
|
#4
|
|||
|
|||
|
Well, this one worked on my computer (IIS 5.0, Win2k server):
<% Dim oFSO Dim oTempFolder Const TemporaryFolder = 2 Set oFSO = Server.CreateObject("Scripting.FileSystemObject") Set oTempFolder = oFSO.GetSpecialFolder(TemporaryFolder) Response.Write "<br>Temporary Folder Name is " & oTempFolder.Name Response.Write "<br>Temporary Folder Path is " & oTempFolder.Path %> |
|
#5
|
|||
|
|||
|
It was working on my system, but from yesterday I am facing this problem. Can u tell me how I can view the version of IIS on my system. I am also using Win2K.
Thanks for cooperation, Jehanzeb |
|
#6
|
|||
|
|||
|
While you are running IIS Manager press F1 for help and see Installing IIS section. The version is written there.
|
|
#7
|
|||
|
|||
|
Thanks for cooperation
|
|
#8
|
|||
|
|||
|
I have debugged that code and founded that IIS can't create the "Scripting.FileSystemObject". Can u tell me what security settings I've to give to IIS so that it can create the object.
Thanks in advance, Jehanzeb |
|
#9
|
|||
|
|||
|
Thanks for you guys for cooperation.
I have sorted out the problem. I was facing because I have installed Nortrn AntiVirus and its "Script Blocking" was enabled. Luckily I find material related to this problem in Microsoft Knowledgebase Article Q295375. Reagrds, Jehanzeb |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > SCripting.FileSystemObject probelm |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|