How to create a directory on the server side

xiaoxiao2021-03-06  38

On the server, I have a write file permission.

Just create a directory, I am using

IF (! Directory.exists (Server.MAppath ("Newsimg /") System.Datetime.today.toTString ("YYYY_MM"))))))))

{

Directory.createdIRectory (Server.Mappath ("newsimg /") system.datetime.today.tostring ("YYYY_MM");

}

Come to create, the judgment is not created. The result is always an error.

"Failed to find some part of the path."

Please give me a master.

转载请注明原文地址:https://www.9cbs.com/read-70369.html

New Post(0)