JohannIcon
Programmer
Is it possible to create 2 folders on the server on the fly? My problem is that I am trying to create 2 folders on the server, with the current year, ie 2002 and current month, ie Nov. So /2002/Nov. The problem is that if folder 2002 already exists, everything works and Nov is created, however, if 2002 does not exist, which in real circumstances, it won't, the asp is telling me that "Path not found"
Here is the code:-
dim fs,Folder
set fs=createobject("scripting.filesystemobject"
Folder=(Server.MapPath("/Johann"+LinkFolder1))
If NOT fs.FolderExists(Folder) then
fs.CreateFolder(Folder)
er = 1
end if
Where LinkFolder1 is currentYear/CurrentMonth
How can I create two folders on the fly?
Here is the code:-
dim fs,Folder
set fs=createobject("scripting.filesystemobject"
Folder=(Server.MapPath("/Johann"+LinkFolder1))
If NOT fs.FolderExists(Folder) then
fs.CreateFolder(Folder)
er = 1
end if
Where LinkFolder1 is currentYear/CurrentMonth
How can I create two folders on the fly?