![](/img/trans.png)
[英]How can i create dynamic buttons on button click event (C sharp ASP.NET)?
[英]How do I create new directory asp.net in c++ for window form button click
我想知道如何在C ++中为asp.net创建文件夹
System::IO::IsolatedStorage::IsolatedStorageFile isoFile = IsolatedStorageFile::GetStore( static_cast<IsolatedStorageScope>(IsolatedStorageScope::User);
isoFile-> CreateDirectory()
我用按钮在c ++中创建了Windows窗体。 当我单击按钮时,它应该以路径作为输入并创建一个文件夹。
例如。
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
}
这是行不通的。 我不想使用<boost/filesystem.hpp>
。 请让我知道我该怎么做。
您需要像这样调用Directory.CreateDirectory
:
System::IO::Directory::CreateDirectory(path);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.