BACK XCOPY batch file

I used my memory limited programming back to create a simple series of batch files to back up the important data on 2 separate PC [a running XP Home, the other XP Professional] their respective external hard drives.  For this I used the XCOPY command more switches as shown on different help sites.  The results seem to have been successful.  With the exception of the XP Home PC, where I created the following command to copy the contents of my programs folder

c:
xcopy "c:\Program Files\ *.» ' ' * J:\DellPrograms\*.* /CDYSWFHUR
pause
 
With the appropriate changes to the details by car this command worked OK on XP Prof. machine  On the XP Home, similar batch files machine worked for pure data files.  But I can't understand why when the execution of the file above on XP Home the DOS window opens - as it should - but when I tap a button to continue the window closes immediately without anything happening. I am aware that reinstalling a program isn't as simple or the same copy of a piece of text, but that shouldn't stop backup me original exe files.  I've fiddled about with some of the switches, but without apparent effect. All the batch files are stored in the folder of programs with links to the desktop for ease of use, but it doesn't make a difference which way I click on it (as I expect).  I am running out of ideas, I hope someone will have a brainwave.

Hello

The question you have posted is better suited for the MSDN forums. You can post the question to the following link for assistance.
http://social.msdn.Microsoft.com/search/en-us/?refinement=112&query=DOS%20Xcopy

Tags: Windows

Similar Questions

  • HOW to run a batch file in BACK 6.22?

    I wrote a batch file that works fine in the Windows command prompt, but I would like to be able to run after POST in the BACK. I copied my code AUTOEXEC. BAT file that runs automatically; However sometimes with syntax errors when it reaches the call control and the rest.

    echo. This script is counting the # of POSTs.
    echo. The POST # value is saved in TEST.txt.
    echo.
    
    call:myPOSTTest
    
    for /f "tokens=* delims=" %%x in (A:\TEST.txt)  do echo POST# %%x
    
    echo. &pause&goto:eof
    ::--------------------------------------------------------
    ::-- Function section starts below here
    ::--------------------------------------------------------
    
    :myPOSTTest    - here starts my function identified by its label 
    
    set var=0
    
    if EXIST A:\TEST.txt (
         for /f %%x in (A:\TEST.txt) do (set /a var=%%x+1)
    )
    
    echo %var% >> A:\TEST.txt
    
    goto END
    
    :END
    
    

    Thank you

    Hello

    Many of us being volunteers do not have the expertise to help.  Refer the question to the TechNet Script Center.

    Script Center

  • How to have a batch file executed without the BACK popup on the screen?

    original title: running tape recorder in a minimized batch file or out of sight?

    Hi, I'm wanting to play a sound every 30 minutes.

    I wrote a batch file for use of Windows sound recorder to play the sound, and then close.  I will use the Task Scheduler to run and the calendar.  The sound seems to play fine, but every time it works I see a popup box BACK and then heard play recorder app.  These two things quickly disappear automatically, but ideally, I want the sound to play and can't see the window BACK or recorder popup of sounds on the screen.  Is there a way to minimize or hide these things automatically?  As it is run in the background, but still play the sound?  My batch file is below:

    Sndrec32.exe "C:\WINDOWS\Media\chimes.wav" /PLAY / CLOSE

    This could help you.
    http://zoombody.com/articles/run-a-batch-script-minimized

  • Batch file xcopy creating cyclical error

    Hi all

    I have a little problem here when creating a piece of simple code for a batch file important that I write. Maybe its a PEBKAC issue because I worked at it for too long...

    Because it is big enough, I like to create Variables that you can centrally manage twist as and as needs to be. The xcopy command will work very well on its own with the paths specified model, but when I run it with the variables, it gives me various errors. I tried in vain below:

    Example 1:

    off @echo

    CD.

    CLS

    SET O_PATH = %SystemDrive%\OLDPATH\*.*
    SET N_PATH = %SystemDrive%\NEWPATH\

    xcopy % O_PATH % N_PATH % / e/y

    Error : Invalid number of parameters.

    Example 2 :

    off @echo

    CD.

    CLS

    SET O_PATH = %SystemDrive%\OLDPATH\
    SET N_PATH = %SystemDrive%\NEWPATH\

    xcopy % O_PATH % N_PATH % / e/y

    Error : Cannot perform a cyclic copy.

    Example 3:

    off @echo

    CD.

    CLS

    SET O_PATH = %SystemDrive%\OLDPATH\
    SET N_PATH = %SystemDrive%\NEWPATH\

    xcopy % O_PATH % N_PATH % / e/y

    Error : Invalid number of parameters.

    Example 4:

    off @echo

    CD.

    CLS

    SET O_PATH = %SystemDrive%\OLDPATH\*.*
    SET N_PATH = %SystemDrive%\NEWPATH\

    xcopy % O_PATH % N_PATH % / y

    Error : Invalid number of parameters.

    Example 5:

    off @echo

    CD.

    CLS

    SET O_PATH = %SystemDrive%\OLDPATH\
    SET N_PATH = %SystemDrive%\NEWPATH\

    xcopy % O_PATH % N_PATH % / y

    Error : Invalid number of parameters.

    Many thanks in advance,

    Tom

    Tom

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • batch file to copy file

    Hello

    The code for a batch file

    copy folder (my folder name is = my client of the user on the example of .to network username user name of May is user1 so my D ind drive file is user1) from one disk to another copy.

    I tested this code, but has not responded.

    MD D:\bdc94attrib -r -h -s D:\bdc94\*.*xcopy  "d:\%username%\*.*" d:\bdc94 /Q /Y /R /S
    

    tanks

    Hello James,.

    Thanks for posting your question on the Microsoft community.

    I appreciate your time and patience.

    This question fits better for Windows developers on MSDN forums.

    I suggest you post your question on the MSDN forums for assistance by other developers.

    MSDN forum
    https://social.msdn.Microsoft.com/forums/Windowsdesktop/en-us/home?category=windowsdesktopdev

    Thank you

  • Batch file is not automatically end

    Hello friends,

    I'm Harnish Jouve of the India. Now a days I am facing a question about the batch file does not end.

    I have a database server and I need to transfer data from server to Client PC. For this, I create a batch file. My batch file is run with success and transfer data were but batch file is not terminated automatically. Please find the below batch file script for the same.

    Script below is run on Server 2003

    xcopy \\172.17.7.11\BACKUPS\MORNING\*. * \\172.17.7.55\ORABKP\morning/c/f/r/z

    Data must transfer the server form 2003 to windows 7 PC

    Please help me to solve the same.

    Thank you and best regards,

    Harnish Jouve

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Cannot launch SNDREC32.exe minimized during playback of batch file?

    Hello

    Is it possible to launch SNDREC32.exe from a batch file, this sound recorder is reduced when it reads the file?  I got so the BACK box is hidden, but I like it if tape recorder was automatically reduced also when it reads the audio file.

    Is there command-line switches in sound recorder (SNDREC32.exe) allowing the application to be minimized automatically during playback of the file?

    Hello

    The question you posted would be better suited in the Windows XP IT Pro Forum. I would recommend posting your query in Windows XP IT Pro Forums.

    http://social.technet.Microsoft.com/forums/en/itproxpsp/threads

  • MS-DOS (script) to execute in WindowsXP - batch file 'trap' the errorlevel

    I am writing a Batch MS-DOS (script) file to run in Windows XP.  It run 3 programs: PKZIP for z/OS by PKWARE, FTP (BACK) and an MS-DOS Application with us.  How I 'trap' the errorlevel to each of these programs to ensure that they completed successfully?

    Hello

    Because the problem is related to the batch file, I recommend that you post this question in the MSDN forum.
    http://social.msdn.Microsoft.com/forums/en-us/categories/

  • Cannot create a daily backups from a batch file

    xcopy & too many parameters.

    I'm trying to create a simple daily to the top of a batch file.

    I am using the command line is:
    xcopy Files\Soredex\DfW2.1s\Image g:\Image/s/d c:\Program
    I get an error too many parameters. Can someone tell me what I am doing wrong?

    Put quotation marks around the file name with spaces included, so:

    xcopy "c:\Program Files\Soredex\DfW2.1s\Image" g:\Image/s/d

    I would also put a space before the second pass, but I don't know if it's absolutely necessary: / s/d

  • LEARNING OF BATCH FILES AND WINDOWS CANNOT FIND ' C:\DOCUMENTS'__

    Technical info: Windows XP Pro SP 2. Microsft Office home and Student 2007. AVG Free 9.0.

    Hello

    I am trying to learn the basics of Batch files and am confused right now. I can get a. BAT file to produce a BACK screen and play with some commands, but when I try to get a. BAT file to open a MS Word 07 Doc I get the following message

    Windows cannot find 'C:\Documents '. It stops at Documents. When infact the entire address would include Documents\testdoc or something else. I use Notepad to write the. BAT files.

    If I go into the file target itself and copy and paste the address in XP search utility, it locates the file (with a full name), instantly. But if I do the same copy and paste, paste the address directly in. BAT file for example: C:\windows, DEPARTURE etc etc... It is just straight up with the above mentioned error message.

    All advice forge kindly appreciated. My ultimate goal is to learn how to create a Batch file that will erase the files in different directories about five or six on the click of a button.

    Thanks Mick.

    I'm not an expert in writing .bat files. If no one else is here, you should post on the MSDN forums or there may be a group of newsgroups for .bat file writing.

    http://social.msdn.Microsoft.com/forums/en-us/categories

    I'm sorry that I wasn't able to help you.

    MS - MVP - Elephant Boy computers - don't panic!

  • How to code a batch file to put in the form of z: drive?

    I would like to drive Z: quick format and xcopy in D: drive in the Z: drive for backup.

    I would like to pass on any message entry also.

    Anyone have any suggestions on how to code a batch file for this?

    Thanks for all the suggestions

    Hi oem7110,

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is best suited for on TechNet. Please post your question in the TechNet forum. Link: http://social.technet.microsoft.com/Forums/en-US/ITCG/threads

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to plan a batch file (* .bat) to run when I'm not present?

    Task Scheduler menu does not show me anything about it.

    I have a batch file that saves my directories and important files on an external drive. It has been debugged and works if I run everything in present.

    What I would do now, is that it is every night when I'm not at the computer, say at 23:00.

    How he handles a situation where it need an answer? for example, XCOPY sometimes ask you if you want to replace the files.
    Bill

    To program on Windows XP, you would use Panel initially scheduled tasks | All programs | Accessories | System Tools.

  • Problems with batch files and command.

    I'm not too familiar with the support of the PC, but can follow the operational base.

    I had a problem with my windows vista machine.  Whenever I started, there was a poster on my screen batch file.  This was a company script provided departmental support of PC does not recognize.  It was as if the batch file has been stuck in a mode where it would display only instead of execution.  After a bit of back & comes with our IT supports people, they agreed to look into the problem.  They went under launch programs to ensure that batch files have been executed with the cmd program.  Now, it displays a MS-DOS window whenever I start.  I don't know why this is so.

    As my company IT Department is unable to help, I hope someone can give me some advice.

    Is there a place to check to find out WHY this dos window appears every time and how I could fix this situation.  I can't that hope that corporate batch files are run correctly.

    Thank you

    Ken

    Hello Ken,

    1. Since when are you facing this problem?

    2. the recent changes to the computer?

    3. is the computer on the domain by chance?

    If so, the question you have posted is related to Windows in adomain of work environment and would be better suited to the TechNet community. Please visit the link below to find a community that will support what ask you

    http://social.technet.Microsoft.com/forums/en-us/itprovistanetworking/threads

    If not,

    I suggest you to put the computer in aclean boot state .

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below for more details:

    How to troubleshoot a problem by performing a clean boot in Windows Vista:

    http://support.Microsoft.com/kb/929135

    Note:

    When you are finished troubleshooting, follow these steps in the section above to reset the computer to start as usual.

    Kind regards

    Savan - Microsoft technical support.

  • Slow printing from batch file

    Windows 7 (32-bit), I have a batch file that prints on the printer network HP LaserJet Pro P1606dn via lpt1 mapped.  I see that the printer gets the impression that the light will blink.  The problem is that it is 3-4 minutes before the page is printed.  Printing from a windows like Notepad is not slow.  I used to do this from a Windows XP machine without problem. What is I found out is that if I include a jump (hex 0c) in the file, I print back then printing is fast.  Any ideas on what I can do outside including a form feed?

    Thank you

    That being said, you could try to experiment the various settings of default data type in the part Print Processor of the tab Advanced of the dialog Properties of the Windows printer that uses your target LPT1: port.

    for example, change from RAW to RAW [FF appended] or RAW [FF auto].

    I have no idea if it will work.

  • How can batch files - I copy files from subfolders

    II have a directory with several folders that contain pictures, documents, etc... I need a batch file which will look through all these aand only copy files .doc to a specific folder. Now there are hundreds of these files that need to be addressed through, so I really don't want og manually, would be nice if someone could help me here

    Duplicate file names... If you assume that there is not

    -> These assumptions are generally bad.

    is it easy to code?

    -> Easy to code but hard to understand, unless you're an expert. Notice that the script fails when it encounters some "poison characters" such as brackets or double quotes. If you have one of these in your file names or folder, then a different approach is required.

    off @echo
    Set SourceFolder = C:\Users\JohnDoe
    Define TargetFolder = D:\MyDocs
    for /F "delims =" % in ('dir /s /b /ad "% SourceFolder%\*.*" ') do)
    If there are some "%%a\*.doc" xcopy.exe/y "%%a\*.doc*" "% TargetFolder%\". »
    )

Maybe you are looking for

  • Sleep function

    I'm new on iMac and Mac on a whole. If I place my iMac in mode 'sleep', but I still want to download data (synchronization of mettle for my iMac items) during the night, would this work? To put it simply, sometimes I put something to download, and wi

  • Mass

    Expired

  • HP5640: hp 5640 downloads

    I used to be able to print downloads (i.e. bank statements) directly from the download location.  Now, I have everything first to save. Who used to be an option, it is now necessary and is a real pain.    Why? I want the old way back again.

  • Without DECOMMISSIONING blackBerry smartphones

    Hi all. I just completely updated my BB8310 to the latest version.  Is it possible to downgrade my firmware and software than older? If so, how? Where can I find firmware please for Vodafone UK. Thank you

  • Device driver Audio Windows 7 high definition swaps wrongly C Sub and RL RR Audio Jacks

    This is a really weird thing driving me up a wall. I ran Windows XP Media Center Edition 2005 on my HP m1050y and the unit ran as expected for years. Then I upgraded to Windows 7 and my RR speaker makes sounds that are supposed to come from the Subwo