Forums

ASP

This topic is locked

Upload to Multiple Folders

Posted 30 Apr 2002 17:00:05
1
has voted
30 Apr 2002 17:00:05 Kurt Buesching posted:
I'm wondering if anyone has been able to modify PureASP to upload to two different directories (on the same server) simultaneously? Either this or I need to have the file copied from one directory to the other once the upload is complete. Any suggestions?

Replies

Replied 30 Apr 2002 18:21:04
30 Apr 2002 18:21:04 johannes nel replied:
the asp code:

dim fso
set fso = server.CreateObject _("Scripting.FileSystemobject"
'test if file is there
if fso.fileexists (fileName&&path) then
fso.MoveFile source
_[fileName&&path], _
destination[path only]
else
''no file no copy!!
end if



Reply to this topic