Forums
This topic is locked
Upload to Multiple Folders
Posted 22 years ago
1
has voted
22 years ago 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 22 years ago
22 years ago 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
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