Create a Folder with name based on user input?

Discussion, questions and support.
Post Reply
grover69
Posts: 4
Joined: Nov 7th, ’18, 00:01

Post by grover69 » Nov 7th, ’18, 00:03

Still stumbling around. How would I ask the user for a folder name and then create that folder with that name? I figured out how to create folders using AHK code, but I still don't get how variables work. TIA! Great software btw.
User avatar
Tom
Posts: 791
Joined: Nov 24th, ’15, 23:39

Post by Tom » Nov 7th, ’18, 11:44

One way (Type: Command)

Code: Select all

InputBox, path, Create folder, Enter a folder path:,,300,130
FileCreateDir, %path%
Run %path%
Remove last line if you don't want to open a new folder after creation.

You could also use macros - "Manual Text Input" and then "Insert Command Code".
grover69
Posts: 4
Joined: Nov 7th, ’18, 00:01

Post by grover69 » Nov 7th, ’18, 16:43

OK, that worked! Awesome.
Post Reply