使用文本框中的输入创建文件夹 [英] Create a folder using input from a text box

查看:70
本文介绍了使用文本框中的输入创建文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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...

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


这篇关于使用文本框中的输入创建文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆