Question from renaming a file and copy a file

Hi
Like I tell in subject I have a question about those 2 functions.
Well I have a program that will copy files to an other directory for backup. Those files can have so to 1GB. Well I wrote a my code on using FileChannel and that takes some good time to copy it to the other place.
But then I tried just for fun something different like renaming the file to that path. For example:
Orignal File: file.db <-- +- 1GB same directory as the jar file
to renamed file: ../../../test/file.db
That goes very fast and I can open the file without lost of data.
But what is the difference between both function because they do the same just that rename is much faster.
Thx in adavance for your help

But what is the difference between both function
because they do the same just that rename is much
faster.Copying a file involves copying all the data of the file from one physical location on the disk to another. That involves a good deal of IO.
Renaming/moving a file is usually implemented on platforms in such a way that the data remains at the same location and file table entry is modified.

Similar Messages

  • Aggregator seems to randomize quize questions from various project files

    I am using Captivate 5.5.
    I created 10 quizzes, each in its own captivate project.  Each project has its own quiz ID and the question slides are randomized using one pool.   'when I publish each captivate project file, the quzi (swf file) the questions are fine.   
    However, when I aggregate all 10 files into an aggregate project, I get quiz questions from different project files...and the title slide doesn't even match the master slide for that quiz!  For example, after aggregating the project file, my Ch 2 quiz would contain question slides from various chapters...and the
    the title slide doesn't even match the chapter for that question.

    When you use Question Pools, the SWF files for the pools are external to the SWF.  The filenames for the question pools are taken from whatever you called the pool, with the letters _CQP on the end.
    When you use Aggregator, all of the SWF files for each aggregated project file are placed in the same folder.  Each project is not kept isolated in it's own folder.
    So if any of your question pools happen to have the same name, they may overwrite one another when Aggregator compiles them into the same folder.
    Go back into your projects and make sure you first give each published project file a unique name.  Then append the name of each question pool with some extra letters that differentiate it from a similar pool in any of the other projects.  Then republish everything again and build another Aggregated version from scratch.  See if that resolves the issue.

  • I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??

    I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??

    The problem is twenty three people leaving or twenty three thousand leaving has zero impact on a carrier with over 100 million customers. And they have the lowest churn rate. So if 10,000 or 20,000 or more churn out it means little to the carrier.
    If you have a real lawyer he/she will advise you that you have no case. The device was not lost or stolen by the carrier, you were not eligible for a new device, and like any business who employs large numbers of poorly trained personnel who make low wages what was told to you is not in writing. So a verbal exchange does not hold up.
    In fact in Verizon's customer agreement it has such a disclaimer against any verbal exchanges so if you have that agreement in writing, go get them.
    The posting on public forums and places like Face Book, Linkin, Google+ or a personal web site can open you up to a lawsuit for Dilution of Trade Name, and other offences. However if you have proof then go for it.
    Unfortunately that is how big business works today. A pity

  • Retrieve files  from a text list and copy them to other location?

    Hi,
    I work as a photographer: my clients often send me their final selections of my pictures as a text list (i.e. file001.jpg file 004.jpg file 054.jpg and so on), so I have to go back and pick each picture "by hand": this is a huge waste of time since I'm dealing with hundreds of picks in thousands of files.
    My question is: is there a way to retrieve and copy the selected files automatically? I was thinking about feeding the list of files to Automator, but I can't seem to find a way to do it.
    any hints?
    thanks in advance
    Andrea

    ok I seemed to have it sorted out...
    Niel, I'm no programmer at all, but thanx to your script I was able to come up with this:
    tell application "Finder"
    set source_folder to choose folder with prompt "Select folder with all pictures"
    set the_files to every paragraph of (read (choose file with prompt "Select text file with the names of the pictures to be copied"))
    set target_folder to choose folder with prompt "Select destination folder"
    repeat with this_file in the_files
    try
    duplicate item this_file of source_folder to target_folder
    end try
    end repeat
    end tell
    that seems to work!
    needs some fine tuning, like including subfolders of the first folder chosen!
    THANX AGAIN!
    Message was edited by: SAPO!!

  • In PC I have changed the default app location from default to other and copied the previous content to new location and changed the Default location in preference. Now in iTunes, my previous apps are not visible. Is there any solution to this?

    In PC I have changed the default app location from (c:/users/username/My Music/iTunes) to other (d:iTunes)  and copied the previous content to new location and changed the Default location in Edit preference. Now in iTunes, my previous apps are not visible. Is there any solution to this?

    wjosten - thanks very much for the detailed instructions. I'll try this as soon as I get my replacement and it looks like you'll probably end up getting the green tick

  • Question about renaming XDCAM source and targets

    Using XDCAM, is it okay to rename the source folder after you've transferred it?  Same with the folder your transferring to.  Okay to rename it before or after you've transferred the footage?

    Hi,
    I copy the SxS card to an external drive into a folder with a given name like CH-1.  Then I change it to CH-Howe.  I've thought about it and I don't think that has any bearing on anything.  And I believe transfer is the wrong word.  This is an XDCAM import (possibly capture).  Once it's imported, the question then becomes what if I change the name of the folder the files were imported to?  That seems straightforward, too.  I simply reconnect or relink the media.

  • Migrating library from PC to Mac (and copying sync check boxes)

    Hi,
    I recently bought an iMac to upgrade from a PC, and everything's going awesome - except my iTunes library.
    I can get the music/files across to the iMac fine, however I have a library in excess of 60gb and use a 16gb iPhone, so was pretty reliant on the checkboxes to keep my synced library under 16gb.
    I can't seem to find away to copy across the check box information, and would hate to have to manually uncheck all the songs I don't want to sync as I have almost 6,000 items in my library.
    I've seen the iTunes back up option and thinking of trying that, but I'll need to buy a ton of DVDs to do so - so thought it was best to check if there are any other options, and also see if the back up contains the check box preferences.
    Any help would be most appreciated - cheers!

    If anyone's got the same problem, don't bother backing up the library to DVD - it doesn't sync the check boxes. I just found out, 22 DVDs later.
    Was going to put all the synced songs in a playlist and export it (as suggested above), but you can't sort by checkbox - so if anyone has any more solutions, I'm all ears.
    Cheers

  • ACL prevent from rename folder/file

    Hi,
    I fighting with ACLs in Mac OS X Leopard. I have two rules on folder. 1st set to allow all read settings and and write attr, write ext attr, create files (write data) and create folder (append data) with propagation to all child objects. 2nd rule denies deleting and deleting subfolders and files, this rule also is propagated to all child objects. With this configuration I can't rename newly created folder or file. Is there any trick to have disallowed deletion and to allow file/folder rename?

    Pro_Test wrote:
    Hi,
    I fighting with ACLs in Mac OS X Leopard. I have two rules on folder. 1st set to allow all read settings and and write attr, write ext attr, create files (write data) and create folder (append data) with propagation to all child objects. 2nd rule denies deleting and deleting subfolders and files, this rule also is propagated to all child objects. With this configuration I can't rename newly created folder or file. Is there any trick to have disallowed deletion and to allow file/folder rename?
    no, there is no way around that. you have to pick your poison.

  • Adobe Captivate Help | Import questions from GIFT format files (Cp 7)

    This question was posted in response to the following article: http://helpx.adobe.com/captivate/using/import-questions-gift-format-files.html

    Hi there,
    Captivate 7 doesn't support tags during GIFT import. So you won’t be able to import Images, links etc. as part of GIFT Import.
    Thanks,
    Nimmy Sukumaran.

  • Questions from a newbie (Voicemail and Charging)

    I'm still getting used to my iPhone, but I've noticed that someone will call and if they leave a message, it won't show up on my phone until over an hour later. Why is this? Is there a way to fix it?
    Is it bad to charge my iPhone every night even if it isn't dead? I'm so used to plugging in my phone at night that I never think about if it could be bad or not. Approximately, how long is the stand-by time supposed to be? Can anyone offer suggestions to conserve battery? I've changed my email settings to check for mail manually, but I still leave Wi-Fi on.

    No idea for the voicemail.
    Charging shouldn't have any effect (thanks to the type of batteries) when left on overnight. The only harm is if you leave it charging for like a month straight without using it. According to Apple, the standby time is up to 250 hours.
    Well, Wi-Fi is large factor. Heck, even the ask to join network is a large factor. Safari also consumes a ton of battery. Auto-Brightness (and overall brightness) has some effect (not as much as wi-fi or safari, though).

  • Copying tables from the pdf file & loosing all table format when pasted into a word document

    I have tables in an Adobe Reader 9.2 file that need to be placed in a word document.
    When I copy the table and paste it into the word document I loose all table formating and am left w/just text--and, not in the right places, I might add.
    Help please!!
    Thanks! Edie

    The only thing that comes close is to use the Snapshot tool (from the Tools Menu) and copy the entire table and paste it, but it treats it as a graphic (picture) and you can no longer edit cells.

  • Question about updating Linux.2 and IR7

    Hi,
    We use ZEN 4Sp1IR4 on Netware 6.5 SP4
    If I want to update my linux.2 can I just take the linux.2 from the IR 7 and
    copy it in sys:/TFTP or I have to apply the IR7?
    I want to add the latest BCM5700 drivers into my linux.2 but I can't found a
    bcm5700 compiled for the 2.4.18 kernel used by linux.2
    Regards,
    Eric

    Hi Marcus,
    Where I found the bootcd.iso? I downloaded the IR7 but I don't have the
    bootcd.iso
    Thank's
    Eric Bellavance
    Ministere des Finances
    "Marcus Breiden" <[email protected]> a crit dans le message de news:
    [email protected]..
    > On Wed, 18 Jan 2006 15:40:21 GMT, Eric Bellavance wrote:
    >
    >> If I want to update my linux.2 can I just take the linux.2 from the IR 7
    >> and
    >> copy it in sys:/TFTP or I have to apply the IR7?
    >
    > try out the bootcd.iso from ir7 first.. you will need to update all files
    > in the tftp directory plus all other imaging related files
    > --
    >
    > If you have already compiled drivers or have linux.2 please put them on
    > http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
    >
    > Marcus Breiden
    >
    > If you are asked to email me information please change -- to - in my
    > e-mail
    > address.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Import and Copy Opening – One Task & One Prompt Set

      Hi Experts,
    We want to create one data manager package that contains both import from BW with UI and copy opening. We ran into some issues.  Maybe you can help:
    We created a new process chain that contains both tasks, and created a new DM package that has both scripts.  Users only want to enter parameters such as entity and time one time for both tasks...
    When I commented out the Copy opening prompts, relying on the prompts from the Import from BW, I receive an error. The message:
    Task name LOAD
    INFOPROVIDER:
      Replace and Clear Submit
    count: 1114
      Replace and Clear Reject
    count: 0
      Aggregate count: 376
      Submit count: 312
      Reject count: 0
    Invalidate
    selection condition
    I believe it's because we have the %SELECTION% recorded twice in the script (thinking that we will take the variables from the import and continue to use for the Copy opening).
    Also thought to switch around the prompts, hard coding the cube name, and using a dimension selection screen like Copy Opening.
    Any ideas for executing this would be really helpful.  Below please find the standard scripts for
    import and Copy Opening.
    Thank you.
    Eyal Feiler
    'DEBUG(ON)
      PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
    and set selection (InfoProvider list is restricted by both
    BW and BPC authority)",,)
    PROMPT(KEYDATE,%KEYDATE%,"Key date",0)
    INFO(%TEMPNO1%,%INCREASENO%)
    INFO(%ACTNO%,%INCREASENO%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,OUTPUTNO,%TEMPNO1%)
      TASK(/CPMB/INFOPROVIDER_CONVERT,ACT_FILE_NO,%ACTNO%)
      INFO(%MAI_TRFILE%,\ROOT\WEBFOLDERS\MAI_CONSO\Consolidation\DATAMANAGER\TRANSFORMATIONFILES\EXAMPLES\MA\T_FILE_BW_IPROVIDER.XLS)
    TASK(/CPMB/INFOPROVIDER_CONVERT,TRANSFORMATIONFILEPATH , %MAI_TRFILE%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SUSER,%USER%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SAPPSET,%APPSET%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,SAPP,%APP%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,FILE,%InforProvide%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,INFOPROV_SELECTION,%SELECTION%)
    TASK(/CPMB/INFOPROVIDER_CONVERT,KEYDATE,%KEYDATE%)
    TASK(/CPMB/LOAD_IP,PREPROCESSMODE,0)
    TASK(/CPMB/LOAD_IP,TARGETMODE,2)
    TASK(/CPMB/LOAD_IP,INPUTNO,%TEMPNO1%)
    TASK(/CPMB/LOAD_IP,ACT_FILE_NO,%ACTNO%)
    TASK(/CPMB/LOAD_IP,RUNLOGIC,1)
    TASK(/CPMB/LOAD_IP,CHECKLCK,1)
      TASK(/CPMB/LOAD_IP,KEYDATE,%KEYDATE%)
      'supress
    prompts for work status default script and replace - default as yes and yes
    replace.  Default transformation file
    path
    Copy opening
    PROMPT(SELECTINPUT,,,,"%ENTITY_DIM%,%CATEGORY_DIM%,%CURRENCY_DIM%,%TIME_DIM%")
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SUSER,%USER%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPPSET,%APPSET%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SAPP,%APP%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,SELECTION,%SELECTION%)
    TASK(/CPMB/OPENING_BALANCES_LOGIC,LOGICFILENAME,COPY_OPENING.LGF)

    Hi Vadim,
    Thanks, isn't %SELECTION% passed to the process chain?  I see that the process chain RUN LOGIC contains a field SELECTION.  If the value is passed, then I have to change that too?
    2) If we change the value to SELECTION2, then how does this variable capture the parameters for the dimensions?  I am commenting out the prompt of the copy opening script keeping the first prompt below from the import from BW in order to capture the parameters for both scripts.
    PROMPT(INFOPROVIDERSELECTION,%InforProvide%,%SELECTION%,"Please select the InfoProvider
    and set selection (InfoProvider list is restricted by both
    BW and BPC authority)",,)
    Thanks
    Eyal

  • How do I transfer my iTunes from an old computer and keep all contents?

    I need to update my iPad to IOS 5-- or later at this point, but first, I need to transfer my purchases from my iPad to my iTunes.
    I haven't done this already, because where I had iTunes previously, was on an old laptop that ran as slow as molasses.  So, now with a new(er) PC, I just downloaded the newest version of iTunes to the desktop, and selected "transfer purchases", but iTunes gave me some sort of option to select, where I could either only download 'purchased items to play from the iTunes library', or to 'replace everything on the iPad with items already in the iTunes on this PC'. 
    When I downloaded the latest iTunes on the new PC, it automatically pulled in any music i already had on the computer, but I dont want this to replace everything I've purchased from iTunes, or what I have on my iPad currently.
    What do I do to transfer?  And, then to sync? 
    Do I need to disable the iTunes from my old laptop?
    How do I ultimately update to the new operating system?

    Sound like you need to remove whatever you currently have on the new PC and migrate the library from your old laptop over properly...
    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    If you have an iOS device that syncs with contact & calendar data on your computer you should migrate this information too. If that isn't possible create a dummy entry of each type in your new profile and iTunes should offer to merge the existing data from the device into the computer, otherwise the danger is that it will wipe the information from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data. If you don't have any Apple devices then see HT2519 - Downloading past purchases from the App Store, iBookstore, and iTunes Store.
    tt2

  • I want to rename and copy one file by developer

    i want from u please to help me in this problem,i want to rename one file in hard disk using forms 6i
    i used this command
    host('ren c:\xxxxxx_myfile1.txt yyyyyy_myfile2.txt ,no_screen);
    there is one problem face me when the length of name of file is more than 8 charchater ,i can not to rename file ,new name stop in 8 charcahter onle ,and when i copy file using forms 6i and length of the name of file is more than
    8 charcater copy process is failure ,i use this command
    host('copy c:\xxxxxx_myfile1.txt c:\newfolder\yyyyyy_myfile2.txt ,no_screen);

    Did you try enclosing the filenames with " ?
    Like:
    host('copy "c:\xxxxxx_myfile1.txt" "c:\newfolder\yyyyyy_myfile2.txt" ' ,no_screen);

Maybe you are looking for