Copy the file problems

First of all, my problem is the following. I know that the only way to copy a folder

is to create a new folder where you want to copy the original file and copy each file bakary

and then delete the old file... for some reason my copy seems to be failing. Here's the code.

function moveItems (fName, pNum) {}

Temp1 = new File('/p/toConvert/regular/'+fName+'/ImageProperties.xml');
fileObject = new Folder("/p/toConvert/Done/"+pNum+"/"+fName);

{if (fileObject.Exists)}
check = temp1.copy (' / p/convert/do / "+ pNum + ' / ' + fName);
Alert (Check);
return;
} else {}
Alert ("not here");
}

{if (Check)}
Temp1. Remove();
}
return;


Temp1. Remove(); works and removes the old file, however my alert said that the test failed, although remove worked so that we know temp1 exists, and since fileObject.exists has been spent to get the alert... I have no idea of what the case is, it will not just copy. Any help would be appreciated, thanks.

It is the logic of your if statements. You test if the file exists before copying, but not after. And it is difficult to say without seeing all of your code, but you might want to change it (check) if (check == true)

But I think the key is to not to use the true/false returned by copy. Test to make sure that the file exists before deleting the old.

var f = new File('/c/temp/-_01-2_-.jpg');
var fCopy = new file ('/ c/temp 3 /-_01-2_-.jpg ');
f.Copy (fCopy);
If (fCopy.Exists) f.remove ();

Tags: Photoshop

Similar Questions

  • Error message "unable to copy the file"hiberfil", it is used by another person or program." Problem copying content from your PC to external hard drive.

    Original title: problem to copy content from your PC to external hard drive.

    I use Windows XP 2000 and am trying to restore my pc to factory settings as it is continuously 'stick '. When you try to copy my drive "c" on an external drive I get a message saying "unable to copy the file"hiberfil", it is used by another person or program." Close any program that might be using the file and try again "." What is 'hiberfil' and how do I close it down as I am not aware that I use?

    Concerning

    Pete

    The hiberfil.sys will be created every time that you start... If you put in hibernation enabled in your control panel, Power Options and the file is 'open' to think that you can actually choose to Hibernate at any given time.  When you Hibernate XP gives a note of it and will write a hiberfil.sys sometimes important in the c:\ folder so that when XP fires again upwards and returns from hibernation, XP will read the hiberfil.sys file and return to the situation that you were in when you put into hibernation.

    I use to be a chronic hibernant because it takes less time to return after hibernation as a cold start.  Sometimes, it can actually be slower that a cold so start your system based on the amount of RAM has.  The more RAM you have, the more your hiberfil.sys will, if sometimes it's faster to move with just a cold start if you Hibernate (26,03 seconds for me).

    If hiberfil.sys is giving you a hard time (you would not in any way copy it) disable hibernation in your Power Options and the file will be deleted immediately since it would be is no longer necessary.  That would solve this, but if you are trying to copy the entire C drive, you will have other files to complain after that.

    It is certainly possible to make a complete copy of the C drive, if you want, but you will have to initialize on something next to your drive hard if you want to do this so the XP files are not used - then you can copy anything and everything.  You can get some imaging software of disc that will also help you.

    It depends on what the problem is you want to solve and what you wand to end up with when you're done (so far, unspecified).

    I would work on figure our why your XP is paste and fix it in place.  XP should not be sticky.

  • Portege M400: cannot copy the files on the disk HARD - can't see any of my files in Word

    I bought the M400 a few weeks ago. There are a number of problems. Adobe reader gives "an internal error has occurred", manual installation of download gives "error occurred in the file zip", download or copy of the files on the hard disk gives error "there is no space" when there are only 8 gig used from 60 GB. Now, I don't see any of my files in Word.

    I can also copy the files from the cd or DVD. I'm in canada mississauga on Horus, usually resident in the United Kingdom, so I'm in a precarious situation because I can't in my office to sort out the issues.

    Can someone advise me please why all these problems are happening, do I have to use the recovery disk? Baz

    > Forgive me but how to put the hard drive in business.

    I think that the Johnny means that you connect the HARD drive to another computer using the external USB HDD controller. These external USB HDD cases can be purchase in every store of the computer.

    However, if you n t need data that are placed on the HARD drive, you could simply start installing the OS from the recovery CD. This will format the whole HARD drive and install the new operating system as well as all the drivers, utilities and software further.

  • ENVY of HP dv7: copy the file fails error on disk 2 to 58% HP recovery

    My hard drive in my dv7 ENVY dies for the second time in two years (it was under warranty last time and I was able to fix). I bought the hard drive same exact (Samsung, 1 TB), tested in BIOS, past everything. When I try to make the image recovery with the HP recovery discs I received the last time my hard drive died, I get an error then that 58% on two recovery disc that says:

    Reducer

    Copy the file fails

    From: d:\preload\base24. STORMWATER MANAGEMENT

    To: c:\RM\Image\BASE24. STORMWATER MANAGEMENT

    Press OK to retry.

    I press OK and it does the same thing over and over again. People who questioned him on this same type of error seem to get anywhere here, but what choice do I have? The hard drive is the same size, same manufacturer, same model, it should have the question of reimage the system on a hard drive more small, right?

    Am I just out of luck on that? So frustrated.

    englejas

    Hello;

    Let me welcome you on the HP forums!

    I read your post on recovery issues and wanted to help.

    Here is the link to the tool of creation of win8.1 media: installation media to create for Windows - 8.1 help Windows

    Understand, however, you might encounter a problem installing using the media created from this tool.

    You have a version of OEM HP of Win8 installed on your PC, and this means that the product key that is embedded in the motherboard UEFI firmware is OEM, not retail.

    While the media created from this tool SHOULD be activated using this key, there is no guarantee he will do.  If it is not the case, you can use this tool to recover your product key and try to enter it manually: Download Windows OEM Product Key Tool - MajorGeeks

    IF it still does not work, then your only recourse would be to order a new set of recovery from HP discs.

    You can look online for recovery from the paged media related: http://support.hp.com/us-en/drivers

    Once there, enter your product name or number. On your software page and download the drivers, select your operating system and version. Click on "Update".  If the HP recovery support is available for your computer, down near the bottom of the page, you will see an entry for the command Recovery Media-CD/DVD/USB. Click on the symbol '+' to expand this entty and click on order to press for more details.

    Or, if you prefer, you can do the same by contacting HP Customer Service:

    If you live in the United States or the Canada, details are on this page: http://www8.hp.com/us/en/contact-hp/phone-assist.html#section1

    If you live elsewhere, contact details are on this page: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html

    NOTE: once you get through, stay on the line until you are finally able to talk to someone ' one - it can take a while!

    However, HP customer care is generally not available on weekends, so you will have to wait until Monday to contact them.

    Good luck

    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the symbol of the thumbs-up to the left of the answer key to say thank you.
    If my message solved your problem please click on "Accept as Solution" - to help others to find the solution.
    ========================================================================

  • Copy the file fails the Windows 7 recovery discs sent hp

    I have tried to solve this problem for a month now and I'm at the end of my home.
    I am now on my third set of recovery discs HP and all have the same problem. I insert disk 1 by following the instructions on the support forum. She's going through
    Reformat the hard drive windows partition - tick
    Copy of the files needed to restore the hard drive - tick
    And immediately as ending, this window appears:
    Reducer
    Copy the file fails
    From: E:\PRELOAD\BASE. STORMWATER MANAGEMENT
    To: C:\RM\Image\BASE. STORMWATER MANAGEMENT
    Press OK to retry

    Three series of drives have the same come.
    What the hell is happening?
    I'm so sick of this.

    Read a few other posts with similar problems, but can't seem to find the solution. I don't have an external hard drive, I can use... only the laptop I'm trying to fix. (G6-1305sa)

    Any help? It also doesn't help when the HP support is open on the phones until 5:30 from Monday to Friday. I'm at work so can't call. So frustrating...

    Aaaarrrrrgggghhhhh

    Hi Belj,

    Thank you for visiting the Forums HP's Support and welcome. I read your thread on your HP Pavilion g6-1305sa Notebook and not able to restore Windows. If the HARD drive is faulty, this can cause the restoration should not go well. You can try to run a test of material. Please note remove any and all USB devices and remove the memory card in the slot of the card reader. Disconnect all non-essential devices. What is the original HARD drive? Have you replaced all other parts? Have you tried to do a clean install of Windows 7. Try running sfc/scannow would scan your system to find errors on the command line. You can get to the command prompt by clicking F11 at startup. You can see this Microsoft document on the system recovery options.

    Hope this will help.

    Thank you.

  • I can restore the backup made by WHS v1. PP3 the WHS 2011? Or do I need to copy the files over the network of old serevr again?

    WHS backup

    You just bought a new WHS 2011. Question, can I restore the backup made by WHS v1. PP3 the WHS 2011?  Or do I need to copy the files over the network of old serevr again?

    Hello

    Because the problem is with Windows Home Server, I recommend you post this question in the Forums Windows Home Server.

  • Setup cannot copy the file hpinkins5412.exe

    Setup cannot copy the file hpinkins5412.exe

    Using full features software and pilot OJ6500_E710n - z_334.4

    When I use this version:

    full feature software and driver OJ6500_E710n-z_1315

    All software installs normally.  I get all the correct screens.  I connect to a network printer. He fined the printer. He asks me where (postcode), I use the software.  I re - start.  The drivers are not installed.  I have run the diagnostics.  He said that the drivers are not installed.

    HP Officejet 6500 has more 710n

    XP Pro sp3

    I solved the problem with the latest version of the software:

    full feature software and driver OJ6500_E710n-z_1315

    The pilot would not have installed.  I used this web page to fix:

    http://support.HP.com/us-en/document/c01084522

    Thank you

    Docfxit

  • Windows XP Professional Setup copy iaStor.sys then the OS says that it cannot copy the file iaStor.sys.

    After the RAID 0 disk partitioning, installing Windows says it will copy the files in the file system. The first file is iaStor.sys. My SATA CD drive runs for a few seconds, then there is a long pause, then the OS says that it cannot copy the file iaStor.sys. He goes on to say that I should check that there is a CD in the drive. Any ideas?

    Here's the solution to this problem:

    1. in the disk driver (a:\) root directory create a directory called holiday of $ $OEM existing files as they are, we will not delete or replace anything.

    2. in the directory $ $OEM you have created, create another directory called TEXTMODE

    3. copy all the driver files located in the root directory to the A:\$OEM$\TEXTMODE subdirectory, try to reinstall, it should now work.

  • I am trying to format my PC and when the installer loads of my key USB Kingston, he said: Setup cannot copy the file XPtspCom.inf.

    Setup cannot copy the file XPtsp Com.inf

    Hi all!
    I try to format my PC and what configuration is loading my Kingston USB key, said he: Setup cannot copy the file XPtspCom.inf.

    I use Windows XP Professional Edition SP3.
    How do slove this problem please to continue to work with my PC?
    Thanks in advance!

    You should not use these programs, but if you want a USB key to install then you should make an ISO file and then using Unebootin according to me this is a best software to USB for xp and if you have windows 7 installed in one of your system, then you can use tool usb windows 7.

  • Cannot install the update of security KB2698365, get the error message ' set up cannot copy the file msado15.dll.

    Tried several times, if I check the update log it shows canceled, have tried to disable Norton. Tried to install it manually through the Setup Wizard.  He gets up then I get the message "set up cannot copy the file msado15.dll.

    Hello

    You did changes to the computer before the show?

    Method 1
    I suggest you to run the fixit from the following link:

    The problem with Microsoft Windows Update is not working
    http://support.Microsoft.com/mats/windows_update/

    Method 2
    I suggest you register the Msado15.dll file required.

    a. Click Start and then click Run.
    b. in the run dialog box, type the following commands in the Open box and then click OK.

    Regsvr32.exe ">"

    The> placeholder is the absolute path of the file Msado15.dll.

    The following examples show how you can specify an absolute path:

    Regsvr32.exe "C:\Program Files\Fichiers Files\system\ado\Msado15.dll"

    If the Msado15.dll file is saved successfully, you receive a message similar to the following message:

    DllRegisterServer in C:\Program Files\Common Files\system\ado\Msado15.dll successful.
    c. click OK.

    Method 3
    I suggest to perform the clean boot and then try to install the updates. Clean boot will disable all of the third-party program to ensure that all third party program is not causing the problem.

    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353

    Note: Make sure that you reset the computer back to normal once the diagnosis is complete.

    Method 4
    I would say that you can download and install the update to the clean boot from Microsoft download center.

    Update security for Windows XP (KB2698365)
    http://www.Microsoft.com/en-US/Download/details.aspx?ID=30228

  • Unable to copy the file when windows installation...

    I want to install window on my pc... but when step copy the file, that it has almost no...

    I try to use a different installation cd, but the same problem must out when copying files...

    someone help me please...

    IM sory for my bad English... :-)

    Check this thread: -.

    http://social.answers.Microsoft.com/forums/en-us/XPInstall/thread/0b5f9099-e934-4818-b2cc-41dd0edd3f13/

  • When I try to copy the files from Windows Mail on Vista on a USB key I get the message "you are about to copy this file without its properties

    I move the file from my old PC which took place with Vista on a new computer running with Win 10 where I have Windows Live Mail is installed.  When I try to copy the files from Windows Mail on Vista on a USB key I get the message "you are about to copy this file without its properties".  After studying this issue on the forums, a proposed solution was to reformat the drive in NTFS format, I did.  This does not solve the problem.  Any suggestions?  Would it be OK in this case to ignore the message and copy the file without its properties?

    Well data files/user of vista should work. Yes a NTFS format is good, go to run, or cmd, type:

    diskmgmt.msc in msc, R.click on the material, delete the partition, create one, format. Use the default settings,

    Once thru, L.click the disk, go to actions, all, select 'enable '.

    In addition, live windows for vista is microsoft discontinud

  • Delay of the dialog 'Copy the file' when you drag a file to a folder that already contains.

    Delay of the dialog 'Copy the file' when you drag a file to a folder that already contains.  The dialog box only appears when that I disconnect.  In fact this problem can seriously mislead the user. The file has been copied to or not? This is a serious shortcoming of the operating system.
    A similarly delayed dialog box is to join files on a send to the recipient of the message.

    What is the cause of the delay? Dialog boxes are not under other windows - they break on screen as I log out.

    When I drag AGAIN the same file in the same folder, then I get a message that "the action cannot be completed because the file is open in another program.  (No doubt the program who was trying to copy in the first attempt and waits for a response to the dialog box may not show me!)

    Hardware: Computer laptop Asus M70.  VISTA Ultimate with the latest patches.

    Lorien, thanks for your response.
    A lot of time and effort was exercised in an attempt to find out WHY. I wanted to not just fix the symptoms. It concerned me greatly as a basic function of the operating system does not work. He was not fit for purpose. In the end I found that a third-party application compromised of WINDOWS VISTA 32-bit operating system. If an operating system can not reliably inform the user that an operation is successful or not, it is worthless. In the case above, I didn't move the files was a success (no response required) or the delayed response until I signed.

    In addition to the original problem, there was the following problem: http://social.answers.microsoft.com/Forums/en-US/vistanetworking/thread/24068518-31e0-4b23-823b-d54882792301 where "send to..." 'Recipient' disable the context menu in Explorer for JPG does not or not broken.

    Finally, I figured out the following error had something to do with my problems:

    Description:
    The server {AB8902B4-09CA-4BB6-B78D-A8F59079A8D5} is not registered with DCOM within the required time.

    -
    -
     
     10010
     0
     2
     0
     0
     0 x 80000000000000
     
     198817
     
     
     System
     ASUS_M70VM
     
     

    -
     {AB8902B4-09CA-4BB6-B78D-A8F59079A8D5}
     

     

    Arriving in my solution, I was inspired by the following articles http://blogs.technet.com/markrussinovich/archive/2006/08/31/453100.aspx     http://blogs.technet.com/markrussinovich/archive/2006/11/27/532465.aspx
    So I downloaded the MS debug tools and confirmed my suspicion of dllhost.dll using REGEDIT to set debugging on that.
    To cut a long story short, it's DivX 7.2 which caused me grief.  In particular, the file DivXDecH264.ax 'has an access violation - code C0000005 (first chance).  It has been autonomous in DivX Plus DirectShow Filters.     Thus, when it has been deleted (starting other Articles to original install DivX) through Control Panel of configuration/programs and features my system worked perfectly well.

    I know SFA on the architecture of Windows but why was this DivX file loading and cause an access violation whenever I used the windows Explorer?  How an operating system may fail in a basic function of by a third party issue?  There are some newspaper where this access violation was recorded?  It was only possible to identify it in debugging?

    What you fella?

  • I keep asking myself for permission to copy the files, etc. How can I turn this off?

    I keep asking myself for permission to copy the files, etc.  How can I turn this off?

    Hi Kasggr,

    You are be prompted for approval because of her User Account Control (UAC) and it is not wise to turn off UAC.

    User Account Control (UAC) is a feature in Windows that can help prevent your computer from unauthorized changes. This UAC asking your permission or an administrator password before performing actions that may affect the operation of your computer, or that change settings that affect other users

    By verifying these actions until they start, UAC can help prevent malicious software (malware) and spyware from installing or making changes to your computer without permission.

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-user-account-control

    Enable or disable the User Account Control
    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-user-account-control-on-or-off
    http://social.msdn.Microsoft.com/forums/en/WindowsSecurity/thread/c6be4563-4593-4741-ba70-c50fb3636863

    I hope this helps.

    Bindu S - Microsoft Support

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Micro adapter USB keeps disconnecting when I try to copy the files.

     
     
    Micro adapter USB keeps disconnecting when I try to copy the files.

    Hello

    I have a Micro SD card reader, when I insert my memory card into the reader, he comes and stays there until I try to transfer files to the memory card, or if I run a h2testw test it disconnects.

    Its getting boring, I bought another card reader, but the same problem persists. I tried the drive in my computer and it seems to have worked here, but just on my laptop, I'm having problems.

    Any help will be appreciated, thanks in advance!

    Hello

    1 did you change on your computer?

    2 did you receive an error message?

    I suggest you to check with the other USB port.

    Method 1:

    Tips for solving common driver problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

    Method 2:

    I suggest you to remove and reinstall all USB controllers

    To remove and reinstall all USB controllers, follow these steps:

    (a) click Start, click Run, type sysdm.cpl in the Open box, and then click OK.

    (b) click on the Hardware tab.

    (c) click the Device Manager button.

    (d) expand Bus USB controllers.

    (e) right click on each device under the Bus USB controllers node and then click on uninstall to remove them one at a time.

    (f) restart the computer and reinstall the USB controllers.

    (g) connect the removable USB storage device and perform a test to ensure that the problem is solved.

Maybe you are looking for