#11 2012-09-13 07:06

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Creating a set of empty folders

narayan wrote:

[Edit] Just had a look at the script, and it seems to need relative path.
Instead, can we simply specify the absolute path of the folder where I want to add subfolders?

Suddenly will reading this thread it came to my mind a little idea on this topic.

On the issue or relative paths. What if instead of using dummy files, you would just add to the filelist, the folder were you want the others to be created, that way would be more intuitive. And you could do it in more than one folder at a time.

As I don't have time now to look into Stefan's code, I'm talking about:

if (not WideDirectoryExists(FilePath)) then Exit;

BasePath := FilePath;

Last edited by SafetyCar (2012-09-13 07:08)


If this software has helped you, consider getting your pro version. :)

Offline

#12 2012-09-13 08:04

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Creating a set of empty folders

SafetyCar wrote:

What if ... you would just add ... the folder were you want the others to be created,

That depends on users habit and workflow.
You would be forced to browse for an folder. I just want to use my main test folder, or %TEMP% for that matter.

If you need this, we can see how we can code this feature.

In the meantime i have added more checks instead:


begin

  FileName := FileName; FilePath := FilePath; ////just to prohibit the hints

  if (WorkDir = '') then Exit; ////some checkings for the working dir
  if (not WideDirectoryExists(WorkDir)) then
   begin ShowMessage('Working Dir ' + WorkDir + ' not found. Script quits.'); Exit; end;


  ////Show hint at to many items if Amount would be 100, or 1.000 or more
  if (Amount > 100) then
     if (WideDialogYesNo('Do you REALLY want to create '
         +IntToStr(Amount)+' items?')=false) then Exit; 

Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#13 2012-09-13 21:34

Regex223
Member
Registered: 2012-09-04
Posts: 12

Re: Creating a set of empty folders

Try Text2Folders as well. Text2Folders is a simple batch folder creator that can generate folders (including sub-folders) from a manually entered list or a text file containing the folder names.

http://download.cnet.com/Text-2-Folders … 73257.html

Offline

#14 2012-09-14 03:05

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: Creating a set of empty folders

That software meets all my needs. thanks!

Offline

Board footer

Powered by FluxBB