Page 1 of 1

User input, creating folders

Posted: 02 Jul 2020 07:52
by TimTBaum
Hi,

I am a new user of the XYplorer and I am very happy that I found it.
I am also new to the scripting and I need some help from you pro users.

Is it possible to get a user input and then create multiple folders based on the input?
I have a Windows batch script which looks like this and I want to this to be executed through the XYplorerer script:

Code: Select all

REM --------------------------------------------
REM Get user path for new dir
REM --------------------------------------------
set /p newFolder="Enter new folder name: "


REM --------------------------------------------
REM Create dirs
REM --------------------------------------------
md "D:\projects\""%newFolder%""

md "D:\projects\""%newFolder%""\customer"
md "D:\projects\""%newFolder%""\customer\contracts"
md "D:\projects\""%newFolder%""\customer\misc"

REM --------------------------------------------
REM Open explorer
REM --------------------------------------------
%SystemRoot%\explorer.exe "D:\projects\"%newFolder%

Thank you in advance.

Tim

Re: User input, creating folders

Posted: 02 Jul 2020 08:05
by highend

Re: User input, creating folders

Posted: 02 Jul 2020 09:52
by TimTBaum
highend wrote: 02 Jul 2020 08:05 viewtopic.php?p=169945#p169945
PERFECT! :appl:

Re: User input, creating folders

Posted: 02 Jul 2020 15:14
by RalphM
If it is always the same subfolders you are after, you also might want to look into the capabilities of "Edit/New Items" as you can place whole folder structures (even including files) there to be copied into a new path with just a single click.