我想创建.exe文件同时创建多个文件夹

时间:2015-10-30 21:09:24

标签: batch-file

我想创建.exe设置或批处理文件以同时创建多个文件夹。 和文件夹名称提示提供或从.txt文件中获取。

2 个答案:

答案 0 :(得分:0)

Your question is Operating system dependent.

To create an executable

In windows you can use Visual Studio console application to create a c++ code and build it to obtain a .exe file. You have to take care on the linking options. To create a directory simply do mkdir("foldername") and to read or write from txt file, create a file stream and use getline to read the names of folder.

In linux I suppose it can be done by writing a bash script.

答案 1 :(得分:0)

If you are ok to enter the name of the folder each time, you can simply use the md command of the Windows Command Line!

Syntax: md MyFolderName