Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Scripting.FileSystemObject

Reply
Thread Tools

Scripting.FileSystemObject

 
 
Giorgio Cervati
Guest
Posts: n/a
 
      09-03-2003
Hi everybody,
found strange behavior in Scripting.FileSystemObject;
only FileExists() method seems to work fine. All other methods cause browser
to indefinitely wait for something that never come.

Here is a sample code. Proc call "fso.CopyFile oldfile,newfile" seems to
cause client to wait until.....what? If I rem that call everything goes fine
and fileexists method found the file....
Any suggestion?

Thanks in advance.

G.

<%
Dim fso
oldfile=Server.MapPath("/asp/test/old.asp")
newfile=Server.MapPath("/asp/test/new/old.asp")

Set fso=CreateObject("Scripting.FileSystemObject")
if (fso.FileExists(old)) then
%>
Found...
<%
fso.CopyFile oldfile,newfile
else
%>
NOT FOUND...
<%
end if
%>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments