Create the folder hierarchy

Hi all!

I need a function that creates folders,

Create A folder on the target "C:/test/123 / '.

If A file exists on the target "C:/test/123 /" then create folder B on the target "C:/test/123 / '.

If the B folder exists on the target "C:/test/123 /" then create folder B on the target "C:/test/123 / '.

If file B exists then create file C on target "C:/test/123 / '.

Could someone help me with this function

Thanks in advance

Try this,

var target = Folder.selectDialog("Choose a target folder");
if(!(Folder(target+"/"+"Folder A")).exists)
{
        new Folder(target + "/" + "Folder A").create();
    }
else if(!(Folder(target+"/"+"Folder B")).exists)
{
        new Folder(target + "/" + "Folder B").create();
    }
else if(!(Folder(target+"/"+"Folder C")).exists)
{
        new Folder(target + "/" + "Folder C").create();
    }
else
{
        new Folder(target + "/" + "Folder D").create();
    }

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • Where can I find a tutorial on the folder hierarchy show?

    I have 11 items first, which is also the organizer of the program elements. And I also have Photoshop Elements 10. The organizer elements with video editing software, that's what I'm interested in good. I think that my folder hierarchy is not fair. I want to straighten but I don't know how. Can someone direct me to a tutorial on how to work with the folder hierarchy.

    This could be another issue, but it could be related to my confusion about the folder hierarchy in the Organizer. On June 10 I was copying some photos from my hard drive to the Organizer - probably a stupid thing to do. While I was doing this, the pictures folder (display and organize digital images) not is more took me to all my photos on the hard drive. The pictures folder's subfolders, Documents, music, Control Panel on the Windows 7 Desktop to the right of the menu stuff start.

    When I click on images now I get two files: Adobe and photos. The Adobe file has these values - size: 0 bytes; Contains: 0 files, 1 folder; Created the: Monday, June 10, 2013; Attributes: Read-only (applies only to files in the folder. I deleted the folder Adobe several times but he returns.

    What I really want to do, is to restore my folder image to its original state so that I have access to all the photos of my HDD immediately instead of clicking around these issues. Vaguely, I think that something I did to the folder hierarchy in the optimizer has messed up things on my computer.

    Of what you have listed here, it looks like you have moved your records photo up to a level... sort of. I don't know why computer appears in my images (or perhaps there is just one problem with the way you have indented the list here...). But it looks like you have a lot of your image files moved to the parent folder where one normally would expect them to be.

    The folder my pictures is the name used by Windows XP, Windows Vista and later, the record was simply named images. If I read your right of the list, it looks like you want to take the faces folder that is located in the folder of Tommy and move it to the pictures folder (the one at the bottom of the list, just above D, E, F, G). You will also need to move the folder of Clowns (to the top of the list), in the case of faces that you've just moved in the previous step. If there are images in my pictures, pictures files and/or the faces (the three all at the top of the list), you will want to move them to the folder of images at the bottom of the list.

    All this can be done in the elements Organizer, simply drag and drop a folder to move it from where it is at the location you want.

    For any questions with the help of the elements of first, you'll want to post in the forum first parts of responses: http://forums.adobe.com/community/premiere_elements

  • Create the folder under computer virtual & model

    Using powershell, I want to create a folder in Machines virtual & view sandrine models a data center which has the same name as existing in cluster.  I can get the command new folder works but it is default to create the folder in the view of data centers.

    Tthanks!

    If I understand your question, you want to create a new folder called 'blue'.

    The trick is to know that there are some hidden (from the point of view customer VI) folders that you need to know to make it work.

    In the case of the view 'Machines virtual & templates' folders called 'vm' in each data center there.

    This script shows you how to create a folder 'blue '.

    
    $dcName = 
    $dc = Get-Datacenter -Name $dcName
    $parent = Get-Folder "vm" -Location $dc
    New-Folder -Location $parent -Name 
    

    PS: with the managed object browser, you can see the full hierarchy including these "hidden" folders

    Point a browser at https:///mob

  • says device cannot create the folder

    have been on a cruise and tried to use their computer to download some photos but wouldn't work - now my camera says * cannot create the folder *-my computer can't see also photos even though my computer says there is only 3 GB of space left on a 16 GB of my camera card is an EOS 60 d - my card a San disk Ultra 30 Mb 10 16 GB

    It seems that the SD card is damaged. But it might be possible to recover the files. There are a lot of tips online on how to do it. You could start here... http://www.PCAdvisor.co.UK/how-to/storage/3481659/how-get-files-off-corrupt-SD-card/

    Good luck, I know how much vacation photos can mean.

  • Cannot create the folder on the storage device

    My flash player works well, but lately, I can't create a folder: it simply indicates: cannot create the folder?

    My flash player works well, but lately, I can't create a folder: it simply indicates: cannot create the folder?

    =====================================
    The dialog box you received usually indicates that there
    are too many files copied to the root directory of the
    flash drive.

    The solution is to remove one or more pictures and
    create new empty folders in their place... then move
    all the photos in the files... problem solved.

  • Error message: cannot create the folder C:\Documents and Settings\Marlon\Local Application BVRP Software\NetWaiting\MoHlog.txt Settings\

    I recently had a problem with the virus 'Restore Windows'. I was able to get rid of it with Malwarebytes antivirus scanner, but when I turn on my computer I get this error message.
    Cannot create the folder C:\Documents and Settings\ of Settings\Marlon\Local Application BVRP Software\NetWaiting\MoHlog.txt

    I'm no expert, but I feel that my C drive disappeared, or at least has been hidden. My documents, pictures and music files are all empty. My programs (start > all programs) have been removed and deleted the shortcuts on the desktop. When I go to my computer, my personal and shared document files are not accessible. Under the description it says that they are hidden. My local disk (c) is also empty, but there is still very little space which suggests that programs and files have not been deleted.
    Is it possible to recover my files?
    Thank you

    Hello

    MoHlog.txt file is related to the software of modem on the computer, you can uninstall and reinsta it check if it works.

    Also scan your computer for any infection by virus still present on the computer using any scanner online.

    You can also try the system restore to the point before that the computer has been infected by the virus and check if it helps.

    Good luck!

  • Re-create the folder guest account

    Hi all

    I deleted the folder guest account. Now when I connect to the guest account, I get a message "you are connected with a temporary profile.

    Is it possible for me to re-create the folder comments once again?

    Thank you

    Why did you even have to activate the account invited in the first place? It is disabled by default for a very good reason security - it allows anonymous access on your computer.

    Turn it off immediately.

    If you want to grant the occasional access to your computer for visitors, create a Standard user account and call it 'Visitor' or somesuch.

    Do NOT use the guest account.

    If you find my answer helpful, please click the button "Vote as helpful"! Thank you!
    My Blog

  • How Windows Explorer can be configured to browse the folder hierarchy instead of behaving like a browser?

    I work with files in a folder tree.  I want to browse this folder hierarchy, just as I did in the original copy of Windows Explorer in Windows XP.  I want to use the arrow keys to navigate up and down, and when I'm in a folder and click the previous button, I want it to go up one level in the folder hierarchy, just like he used to.

    Now, when I hit the 'back' button, Windows Explorer behaves as a browserand goes to the last folder that I have read.

    It's so frustrating!  She interrupts my thought process and the movement of my work.  If I wanted to use a browser, I use Internet Explorer.

    How Windows Explorer can be configured to browse the folder hierarchy instead of behaving like a browser?  Remember the "unwebified" of Windows XP Windows Explorer version?  This is what I want so I can get back to work effectively.

    Windows Explorer 7 does not have the up button like XP, however, in the address bar you can select the folder in the hierarchy (sometimes called the trail of bread crumbs) to return.

    Windows 8 added the arrow pointing upwards.

  • SyncToy 2.1 has stopped working, with the message "unable to create the folder pair. Unable to create the provider. Can I get help to fix it please

    After the last automatic update, I tried to back up my files (did this every week for at least one year). Message "unable to create the folder pair. Unable to create the provider"came. I tried again, same. The pair and tried to reset upward. Same message... anyone have an idea how to fix?

    Hi Steve,.

    The question you have posted is related to SyncToy and would be better suited in the SyncFX - SyncToy community. Please visit the link below to find a community that will provide the support you want.
    http://social.Microsoft.com/forums/en-us/SyncToy/threads

    Hope this information helps.

  • Creating the folder and by assigning the role access list, approach programmatic

    Hi all

    I have a requirement to create the folder and assigning RAL in the folder created by the UCM (11.1.1.8) program

    I found RIDC API to use for creating folders, can I use the same for the assignment of RAL, pointers?

    Thank you

    You get errors?

    This blog can be useful: adding a file in folders of the WebCenter RIDC content frame. Niels Krijger

    Jonathan

    http://jonathanhult.com

  • Re-create the folder deleted items from a POP email account

    I use version 38.2.0 of thunderbird with slot Win-7.
    I use 3 different e-mail accounts, but this error exist only in a single POP account.
    By hitting the delete key nothing happenes, the mail remains in the Inbox.
    In case I move the mail to another trash can I remove mail.

    Y at - it something to repair this by recreating the garbage for POP e-mail account?

    Is there any mail in this folder to the Recycle Bin?
    If you can open the folder, try to save all mail by moving it to another folder (preferably empty)

    Allows to remove and re-create your damaged "trash."
    The procedure is given in this article

    https://support.Mozilla.org/en-us/KB/cannot-delete-messages

  • How to search the folder hierarchy by the parties of a folder name. Is there a library similar to library bookmark folder to facilitate the Organization of record?

    How can I search by folder for the email account names and names of folder of bookmarks by keywords or parts of the name of the folder? Is there a way to enter and to associate keywords to send/benchmark folder names?

    We put all our transactions in messaging and bookmarks in a reversed under the account name and appropriate ISP user tree structure, but often end up with double taxonomic entries under multiple ISP accounts such as Roadrunner or Google-mail address for the same Windows user account and the name. Sometimes I create a same folder in both accounts. Be able to search by folder_name in all e-mail accounts in the same Windows user name would be wonderful to correct the bifurcations in taxonomy of folder name.

    What I do not right - please?

    Please - Chris

    I use the add-on for quick folder move - it has a MRU list and a box of text in which you can type a folder name, with an incremental search phase.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/quick-folder-move/?src=API

    You my also find the QuickFolders useful add-on.

    I also wonder if your deposit under the ISP account is the best way to go. I would look of combining messages from accounts under local folders into an independent style of the account.

  • Created the folder in the bookmarks bar, but can't drag thumbnails of bookmark in it. Difficulty?

    I created a folder in toolbar of bookmarks ('A') in the same browsing session in which the buggy ('B') record began. I can always drag A bookmark icons, but nothing leaves me place these same icons/tiles in B.

    It's rather frustrating. It follows the situation even if I use the button drop-down bookmarks menu and click, "show all bookmarks" and attempt to drag the icon to bookmark in folder B (in fact, in the window "Show all", it is a circle with a line through it when I try to do.

    Recently, I restored Firefox to its factory State and will do so again if notified. Thank you in advance with my dilemma, even if you do not have a fix. I am just grateful that there is a community of active support.

    Problems with bookmarks and history does not properly can be caused by a corrupted database places.sqlite file.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • Create the folder Date current Wise via .bat file

    I want to create a folder using the current date in the .bat file, and then copy some files into the newly created folder. And then copy this folder from one place to the other. that is on the network location. I need that .bat file will work with two Windows XP & Windows 7.

    I'm totally unexperience in the script.

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public to theTechnet on the Technet forums. Here is the link.
    http://social.technet.Microsoft.com/forums/en-us/iTCG/threads

    I hope this helps.

  • SC4020 create the folder to disc

    Hello

    Just bought a new SC4020.  Did not come with any docs but I finally found an online deployment guide.  I have completed prejoin via a serial connection information and two controllers have successfully started.  Connected to the UI, the admin password and loaded correctly in the license file.  Next step is to create a folder on drive.  All disks are selected by default, so I clicked on continue and that's it.  The gui is frozen and you can't do anything except close the window (which if you do, a pop up tells you that the installation is incomplete).  So, what to do next?  It takes a long time to create a folder on drive?  The only thing I noticed is that my first 12 RI SSD drives are listed in the UI as an unknown type.  The second group of 12 disks is listed as type 10 k (which is correct).

    Thought I would try the forum first, before I connect to a support work.

    See you soon,.

    Mike

    You may want to upgrade the code on the SC4020 so that the system will use these SSD drives. That is why the wizard will not let move you forward when the disks are selected.

Maybe you are looking for

  • How to make firefox 4rc work with norton 360 toolbar?

    drop-down list in the update installed, says ff4rc is not compatible with norton 360 toolbar all other norton products appear to work ff4rc looked for, but did not find a fix

  • viWaitOnEvent timeout?

    I have a simple application (LV2009, VISA 4.6.2) to communicate with the devices using a GPIB-USB-HS. When it is run in the development environment, that no error is generated, but in the exe that I can see spy a lot viWaitOnEvent timeout error. In J

  • How to publish an application

    Already, I'm puzzled.  I hired a programmer to develop an application for me, and now I want to publish.   I was expecting to find a link that I could find, which would describe the process for a beginner like me.  Nope...  Can someone direct me to t

  • BlackBerry Curve Smartphones 9320 cannot scrolling on BBM + BBM chat question

    I have a 9320 curve 6 weeks old, I recently started having problems of scrolling through conversation on BBM. Everything else is good, but I can't scroll upwards or downwards for previous messages in a chat. Also, I sent a message to all my contacts,

  • Explorer blocks the deletion of a file

    I use Windows 7 64-bit. I have 2 separate pictures that I experience on the issue. The first system is a former corporate image. Not built by me, but I do a lot of it to make it work in MDT 2010. The second image IS built by me, from the ground up fo