使用文本框中的输入创建文件夹

问题描述:

我正在尝试根据文本框中的输入文本创建文件夹。我可以毫无问题地创建文件夹,当我在混合中添加文本框时,我遇到了问题。有人可以帮忙吗?

I am trying to create a folder based on inputed text from a text box. I can create the folder without a problem, it is when I add the text box in the mix I am having issues. Can someone please help?


我正在尝试根据文本框中的输入文本创建一个文件夹。我可以毫无问题地创建文件夹,当我在混合中添加文本框时,我遇到了问题。有人可以帮忙吗?
I am trying to create a folder based on inputed text from a text box. I can create the folder without a problem, it is when I add the text box in the mix I am having issues. Can someone please help?



我刚刚创建了一个新项目,在表单上抛出了一个文本框和一个命令按钮,并插入了这段代码。有效。

I just created a new project, threw a textbox and a command button on a form, and inserted this code. It worked.

展开 | 选择 | Wrap | 行号


Private Sub Command1_Click()

MkDir Text1.Text

End Sub




使用上面的代码,我可以创建一个目录,我还需要在上面的语法中给出路径。在这方面你能帮忙吗。


问候,

PPKumar
Private Sub Command1_Click()
MkDir Text1.Text
End Sub

Hi,
Using the above code, I could be able to create a directory, I need to give path also in the above syntax. can you please help in this regard.

Regards,
P.P.Kumar



...我还需要在上面的语法中给出路径。在这方面你能帮忙吗?
...I need to give path also in the above syntax. can you please help in this regard.



只需将字符串连接在一起即可。例如,要在C:\ Temp下创建文件夹,你会做这样的事情......

Just concatenate the strings together. For example, to create folders under C:\Temp, you''d do something like this...

展开 | 选择 | Wrap | 行号