[js CS3] how to copy a folder

Hi,
How do you go about to copy a folder (with contents ;-) using JS. You can copy a file from one place to another, but there doesn't seem to be a similar function for copying a whole folder.
Thanks,
james

Create a new folder, rename it to the name you want, and copy all the files from the source folder.

Similar Messages

  • How to copy a folder from one document library to another document library ?

    How to copy a folder from one document library to another document library by programmtically?
    Samarendra Swain
    Team Sharepoint
    www.manuhsolutions.com

    You can use the SPFolder.CopyTo method.
    public static void CopyFolder()
    SPFolder folder = null;
    using (SPSite site = new SPSite("http://basesmcdev2/sites/tester1"))
    using (SPWeb web = site.OpenWeb())
    folder = web.GetFolder("shared%20documents/newfolder");
    folder.CopyTo("tester4/newfolder");
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.copyto.aspx
    certdev.com

  • How to copy a folder more then 4GB from from my iMac to a pendrive or external hard disk?

    how to copy a folder more then 4GB from from my iMac to a pendrive or external hard disk?
    i have an iMac 27inch with os x 10.8.

    You'll have to reformat the drive.
    Assuming you want to use it with both Mac and Windows, reformat it on the Windows machine as exFAT (this is FAT64 as opposed to the standard formatting for those drives as FAT32)
    exFAT has no file size limitations (for all practical purposes).
    This will require the Windows machine to be on at least XP (with an update) and the Mac on 10.6.5 or higher
    If it's being used only with Mac, reformat as GUID partition map and Mac OS Extended.

  • How to copy a folder from TFS source control to Shared location with Powershell script

    Hi,
    I'm looking for a Powershell script where i could copy a folder from TFS Source control to a shared location.
    Details:
    $TeamProject/FolderA - here i want to move FolderA to a shared location called \\Share
    Tried with xcopy: xcopy "$TeamProject/FolderA" "\\Share" ( but no luck, later i found it's only possible to copy files from local to share or share to share location, not from server path to shared location.
    Can someone help me with the power-shell script to achieve above scenario.
    Thanks, BHSR

    Hope the below script works for your scenario. Got the code from http://stackoverflow.com/questions/23739499/copy-files-from-tfs-versioncontrol-to-directory-with-powershell
    $AutoDeployDir = "$\TeamProject/FolderA"
    $deployDirectory = "\\SERVER\SHAREFOLDER\"
    # Add TFS 2013 dlls so we can download some files
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Client")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.VersionControl.Client")
    $tfsCollectionUrl = "http://CDTFSSERVER:8080/tfs/ProjectCollection"
    $tfsCollection = New-Object -TypeName Microsoft.TeamFoundation.Client.TfsTeamProjectCollection -ArgumentList $tfsCollectionUrl
    $tfsVersionControl = $tfsCollection.GetService([Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer])
    # Register PowerShell commands
    Add-PSSnapin Microsoft.TeamFoundation.PowerShell
    # Get all directories and files in the AutoDeploy directory
    $items = Get-TfsChildItem $AutoDeployDir -Recurse -Server $tfsCollection
    # Download each item to a specific destination
    foreach ($item in $items) {
    # Serverpath of the item
    Write-Host "TFS item to download:" $($item.ServerItem) -ForegroundColor Blue
    $destinationPath = $item.ServerItem.Replace($AutoDeployDir, $deployDirectory)
    Write-Host "Download to" $([IO.Path]::GetFullPath($destinationPath)) -ForegroundColor Blue
    if ($item.ItemType -eq "Folder") {
    New-Item $([IO.Path]::GetFullPath($destinationPath)) -ItemType Directory -Force
    else {
    # Download the file (not folder) to destination directory
    $tfsVersionControl.DownloadFile($item.ServerItem, $([IO.Path]::GetFullPath($destinationPath)))
    Regards, Bharath
    LinkedIn:

  • HT201302 how to copy a folder of photos  from imac to ipad

    I have a folder of photos on my imac and would like to put them on my ipad , can someone tell me how to do this? thanks

    There's no way to copy photos directly (e.g., via the Finder, if that's what you were hoping). Instead:
    1 - Import them into iPhoto (or Photos.app if you upgrade to 10.10.3).
    2 - Create a photo album containing all your pictures
    3 - Use iTunes to sync your iPad, after telling iPad which photo albums you want to sync

  • How To Copy User Folder/Application Folder To Fresh Drive

    I have a friend's iMac G5 whose hard drive went south. Fortunately I was able to copy its contents onto an external firewire drive before it totally lost its data. I installed a new hard drive in the iMac and put on a fresh copy of Leopard and iLife '80 - using my friend's same name for the user folder. Migration Assistant won't see the folder as it is on a connected but not bootable drive. So I need to manually drag over her data but I am concerned about just how to do this in a way that won't put me (and her) in "permissions agony." What's the best way to do this? Her system was running Tiger 10.4.11.
    Plus the same is the case for her old applications folder. How can I get all that including the files that go into various libraries. Migration assistant would be so wonderful as it handles all that stuff...any help with this part also?
    Thanks in advance.
    John
    Message was edited by: JOHN PAGE

    I was able to have a fairly successful conclusion to my dilemma. I had copied her information using Retrospect's Duplicate function and all her data was copied onto a firewire drive. This was done as her drive was going south before it totally deteriorated. I made a new administrative user with a slightly different user name (adding a 1 to her name) and copied all the user folder data over. Then I deleted the original user (and the 1 on her new user name) and was left with all her stuff in good shape with no permission problems that couldn't be taken care of with Disk Utility. Of course the Applications folder was one I didn't bother with because of how so many applications install things all over the place, preferences, application support folders, etc.; but, after a reinstall of most of her applications, things to seem to be working quite well. A few of her applications that I had no install for, I copied over successfully from her old application folder itself. Not bad.
    I bought a Time Capsule for her use and am backing up that way for her...as well doing a Super Duper incremental back also onto the Time Capsule.
    Thanks for your help.
    John

  • How to copy favorites folder

    Hi,
    How can i copy other user favorites workbook in to my own favorites folder?
    Thanks for help

    HI,
    Call table SMEN_BUFFC in SE16,
    Select
    UNAME   'userid you want copy from'   
    REPORTTYPE  TR
    REPORT      RRMX
    SAP_GUID  not equal to
    (so you make shure that only wrorkbooks are selected)
    -execute
    -mark objects to be copied
    -select 'Table Entry' from menu
    -select 'Create With Template
    -change uname
    -save
    -select 'Next Entry'
    and so on
    Alternatively you could create a report to modify table in desired way.
    Regards
    Joe

  • How to copy RRbackups folder?

    Is there anyway I can copy the RRbackups folder to another drive under Win 7 x64?

    On what location is the backups you wish to copy: Local  or Second?
    RNR only supports copying Local to CD.  It does not have a copy second to other location feature.
    Based on your other post, 1TB  USB (second) is where you want all backups to be.  I will assume you have 320GB USB(second) with \RRbackups. To be on the safe side:
    (1) uninstall RNR
    (2)plug in 1 TB USB
    (3) install RNR and take full backup to 1 TB USB.
    Yes this involves taking a New backup series, but is the safest way.  You can retain 320GB USB for a few months to use in standalone RNR (PF11) should the need arise.
    Internally within RNR it has registry entries which "describe" second, similar entries within the actual backup folder. A clean install of RNR and  switch to NEW second would prevent mix and match of Second devices. No, I would not copy the \rrbackups folder to the new 1 TB.   Start afresh.  
    ===
    A uninstall of RNR will REMOVE \rrbackups on C drive. If your backups are now on C,and you switch to Second (1TB), it will ask "delete backups on local".  YES, C has no backups. NO, C retains old backup and a NEW FULL backup is taken to Second. In this case, you will have TWO sets of backups, which might get confusing.
    ==
    Is the backup folder you wish to copy a backup of your current system or a previous system? ie, another issue, mix and match RNR versions.
    ===
    Disaster recovery,  I recommend:
    (1) Use the create factory recovery media  option (this back ups the factory recovery service partition) to DVD. 2 or 3 DVD max.
    (2) Create the windows Repair CD (on the windows backup restore panel).
    (3) Use RNR backup to CD/DVD!!  Take both systems and do this backup. If your 1 TB is junked or the RNR folder is junked, you  have a go back to point, without doing   a factory reset. Maybe 5-6 DVD.  Do this every 6-8 months.
    (4) Backup email, personal files to DVD using windows backup or similar. Do this daily/monthly.
    (5) Use windows backup to take Image copy of C HDD; backup to 1 TB USB.
    (6) NEVER use C drive \RRbackups location to store backups. 
    (7) Create RESCUE media to 1 dvd.  This is just RNR standalone.
    ==
    Alternative option to (3) above: (assumes spare 320 gb external usb).
    (1) Uninstall RNR both machines.
    (2) Erase 320 GB. (just make sure no \RRbackups folder).
    (3) Install RNR. Take backup to 320 GB external. 
    (4) again, uninstall RNR both machines, plug in 1 TB ( with current backup series). Install RNR.  Point second to 1 TB.  It will refresh RNR and you are back to normal view backups wise etc.
    Lengthy yes.  Are you covered more ways then 1, yes.   Do this on a sunny day when no power outage expected.
    ==
    On the front end of RNR backup to external, it will invoke RRmedia.exe to populate external USB with a bootable RNR.  You will have some new folders, \preboot   \TVtos.   The same happens with install of RNR. RNR install  will update \preboot on the C drive  (if no service parttion, ie vista to win 7) or within the service parition.  
    ==
    Enjoy.
    ===
    TEST TEST TEST. Take a RNR backup on machine 1. Wait 1 hour.  Create a dummy.txt on C drive.   Restore via PF11. If your in the mood, PF11 restore via standalone CD and use the 320- GB backup.  Then restore again to current. Then try windows restore.  After windows restore, PF 11 will not work. Just reinstall RNR.
    ==
    Why I type so much? Several years back, I booted to a blinking cursor.  Tried to use  Factory recovery CD. Cd burner is smoked (read everything except factory recovery CD). Trip to computer repair shop. Two weeks later, Got machine back. Installed new  CD burner from walmart. BOOM!   microsoft.com down during factory install.

  • How to copy folder with files and subfolders within it  to another folder

    how to copy a folder with files and subfolders within it to another folder

    http://javaalmanac.com/egs/java.io/CopyDir.html?l=new

  • Automator Mountain Lion 10.8.2 trying to copy/paste folder

    I got a folder which we'll call:
    Macintosh\users\OlsonBW\Documents\folder1
    and I want to user Automator to copy the contents of "folder1" and past it into
    Macintosh\users\OlsonBW\Desktop\folder1
    How do you do that in Automator? I see how to copy the folder. I don't see how to paste it using Automator and I want it to replace, without asking, the whole contents from Documents\folder1 to Desktop\folder1
    Note that I want to do this over and over (a quick and easy backup for developing something) with an icon on my Mac desktop. Basically I want to see if something works. If it does, I want a quick and instant backup of that (I also use Time Machine but I'm not always at home and I'm fine if I write over anything as I can always retore from Time Machine when I get back home.
    So ... anybody know how to do this? No I don't want to buy or use another program. If you don't know how to do this with Automator just skip on to the next question on the boards. I'm not trying to be rude. I'm just trying to save both of us time. Thanks in advance.
    PS: Why doesn't Automator have its own board? I would use this utility a lot more, 1) If it was easier to use, and 2) If I could find things in one place instead of having to search for Automator each time plus whatever I'm looking for.

    Looking at the thread again, they maybe Automator scripts. I can struggle my way through an Apple script, but still haven't figured out Automator.
    Here is an Apple link to Automator 101:
    http://support.apple.com/kb/HT2488
    When I typed automator in the support page search box there were several things listed.
    Good Luck.

  • How do I copy iTunes folder which is on my external hard drive to my iTunes folder on my mini mac?

    I am new to Apple computers.  I have just downloaded an iTunes file from my pc onto an external hard drive and I want to know how I copy this file into my iTunes folder on my imac.

    Connect the external hard drive to your iMac.
    Open iTunes, go to the File menu, then select the item "Import into Library" and select your song in the file chooser that will appear. Press the ok button.

  • How to Copy and Paste a table in InDesignServer CS3?

    Hi:
    How to copy or move table from one textframe to another in
    InDesignServer CS3?Thanks in advance.

    Shane has the right idea, but it's actually a character that holds a table. For example, with two text frames labeled "Source" and "Target", this:
    mySource = app.documents[0].textFrames.item("Source");
    myTarget = app.documents[0].textFrames.item("Target");
    mySource.insertionPoints[0].move(LocationOptions.before, myTarget.insertionPoints[0]);
    runs but does nothing, while this:
    mySource = app.documents[0].textFrames.item("Source");
    myTarget = app.documents[0].textFrames.item("Target");
    mySource.characters[0].move(LocationOptions.before, myTarget.insertionPoints[0]);
    moves the table I had put right at the start of the source frame.
    Dave

  • How to copy and paste a photo in another folder using Aperture?

    How to copy and paste a photo in another folder using Aperture?

    What do you want to achieve? Do you really want to create a copy of an image, and thus create a second copy of the master image file? You will waste disk space this way.
    Usually you would create new versions of an image, if you want versions with different adjustments. Versions do not require much additional disk space. But all versions of an  image have to be in the same project. To create a new version: Main menu bar -> Photos -> Duplicate Version
    To create a copy of an image in another project (and to waste the space ) drag the image to another project while holding down the option key. This will create a copy in the other project.
    Sofar nobody here could come up with a good reason why one would want to create a copy. I am curious what in your workflow requires you to do that. Would you mind to tell us?
    Regards
    Léonie

  • How do i copy a folder in Pictures to an external drive

    I am new to Macs. I have a folder in Pictures that I want to send or copy to an external hard drive. I copied the folder to the desktop and tried dragging it onto the external but it would not move. Help!

    If I reformet it will I be in danger of losing the data stored on it?
    Yes! Reformatting a drive will always delete everything, so you'll have to copy the contents of the drive someplace else before formatting.
    If it is formatted as a FAT32 will it then be able to be used on both a mac and windows platform?
    Yes, FAT32 is the format of choice when you need to use the drive with both Mac OS X and Windows. Be aware though, that FAT32 has some limitations, e.g. a maximum file size of 4 GB which could be a problem when you need to store huge video files.
    And if this is all okay, then how do I reformat the drive to a FAT32?
    After you made a backup of the contents of your drive, open "Disk Utility" from "/Applications/Utilities", select the drive in the source list, click on the tab called "Delete" and chose the format "MS-DOS File System" from the Format dropdown.

  • How to copy addresses from Contact folder to TB address book in Win7?

    In Win7 have addresses in Contacts folder under USER. How to copy all the addresses to Thunderbird in one go. Presently can only move one at a time. Pls info. Thanks.

    see here http://thunderbirdtweaks.blogspot.com.au/2013/12/windows-contacts.html

Maybe you are looking for

  • Variable creation error

    Hello gurus, I want to create some reports. Report requirement documents are there but i want your views with it. In there it says create Selection criteria when u execute a query => We have to create variables for those. After that it says Sold to C

  • Getting the current path of the file in a JavaBean

    Hello, I'm using a JavaBean with a jsp code. The JavaBean :     public String  ValidateUser(String user,String pass)           String Name = user;           String Pass = pass;           String  ReturnValue = "NOT OK";         try              Class.

  • Changeing Scrip in Live Environment

    Hi, I've update an existing script, i've uploaded it and now want to swap the script in the Application from the drop down menu box.... My question is, when i do this is there any chance of losing an inbound call, as in during the mouse click on appl

  • How to view the file using the content

    Hi all, I have uploaded the data from a binary file to an internal table using GUI_UPLOAD. Could you please suggest any way how i can view the file using the content. The binary content looks as follows. 345DCC27F35A291DFD5496E0609E8ED08F3405AF5FE3DD

  • Syncing iPhone Contacts with Windows Contacts and Windows Live Mail Contacts (Windows 7)

    Please see the following graphic in which I have attempted to depict this situation from what I have been able to find, and please refer to the following thread (third post) for further details: https://discussions.apple.com/thread/3728606