Create a batch file that will loop a copy command that will call it as a task from another application

I've created a script to copy large files from one system to another system. Unfortunately the transaction language of that system isn't feature rich, so I can't code a loop to copy multiple files to move concurrently. My goal is to create a batch file that
will do the loop of copying multiple files, after being called by the application that is copying the large files one at a time. Can I get some pointer on how to do this? Basically, the code is like this:
Copy from  \\Server_1\directory\sent_file.xyz
To   \\Server_2\Directory\received_file.abc
So the purpose is to perform the successful copy, then if the copy is good, execute the loop until completed.

Might look around here.
http://gallery.technet.microsoft.com/scriptcenter/site/search?f%5B0%5D.Type=RootCategory&f%5B0%5D.Value=storage&f%5B0%5D.Text=Storage
Or ask over here.
MSDN Scripting forum
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • I want to create a "batch file" that will copy files from one folder into another, overwriting what is currently in there.

    I've got a game that has a folder with Saved Games (Okay, it's Minecraft). I don't always have my external drives because I take my Mac Mini from my house to my friend's house and of course back after we finish playing.
    There are times where I want a back up so that if something happens we can restore it as easily as possible.
    What I've been doing is copying the particular saved game and pasting it to my desktop, replacing the new backup over the old backup. I'd like to be able to create a "batch file" so that I can just double-click on it and it will copy and paste overwriting the old version.
    Since this is being automated I've been thinking. It would be nice to have 10 backups which I would like to have numbered from 1 to 10 (and not 0 to 9).
    I'd like the batch file to delete backup 10 then rename backup 9 to 10 and 8 to 9 and so forth until backup 1 becomes backup 2 and then my live copy then gets copied to my desktop. I guess that one really doesn't need a number after it. It can have the exact same name.
    Don't worry about automating the restore. I just want the backup part of it automated. I'm not a UNIX guy but I've tried to figure it out and it is just not working. So ... if someone out there can reply with a solution for me that would be great.
    Extra credit for automatically compressing the backups with the built in compression utility so my backups use less space.
    Thanks in advance.

    I have another psd (adjustment_layer.psd) file that only has one layer, and it is an adjustment layer. . 
    That is possible. An adjustment layer must be over a layer. The layer that it is over can have its visibility off but there needs to at least two layers in your (adjustment_layer.psd) file.  For you can not have and adjustment layer without a layer to adjust.
    Are all your PSD file the same in size  x px by y px at z DPI?
    It would be easy to create an action just to add the adjustment layer you want if your (adjustment_layer.psd) file adjustment layer, layer mask is a reveal all or hide all mask. You can Batch the action or use the Image processor script and have it include your action that add the adjustment layer  you do not need to write a script.
    I would also record that action to add the adjustment layer clipped to the layer below. There is a bug in CS4 and CS5 Action Player. Actions that have recorded adding adjustment layers to be applied to all layers below may play incorrectly.  You will have to pay to get a fix  for this bug for Adobe is not going to apply a fix the the current releases of Photoshop. The bug is so far slated to be fixed in CS6 time will tell.

  • Create a batch file "very urgent"

    i want to create a batch file that run every hour to update the user_status table fields according to the following formula
    if login = 1 and login_time status = 0 then login =3

    Write this statement into a text file and name it as
    say test.sql
    UPDATE user_status
       SET login = 3
    WHERE login = 1
       AND login_time = 0;Then write a script in UNIX as following
    $vi test_script.ksh
    !# /bin/ksh
    sqlplus `@test.sql`save it
    write a crom job for every hour.
    Codes not tested...
    Hope this helps
    Ghulam

  • Creating a batch file to launch a program with user input variable.

    I am trying to create a batch file that allows a user to be prompted to put in a value and then launches the program associated and that particular file. In this case the files are CIF files that pull up saved data inputs. Below is my script so far and what I am trying to accomplish is the user presses 1 and hits enter and is prompted to enter the CIF file name, then the application launches and the paramaters open the selected CIF file.ECHO OFF
    CLS
    :MENU
    ECHO.
    ECHO ...............................................
    ECHO PRESS 1, 2, for your task or 3 to EXIT
    ECHO ...............................................
    ECHO.
    ECHO 1 - Open Cape Pack CIF FIle
    ECHO 2 - Open Calculator
    ECHO 3 - EXIT
    ECHO.
    SET /P M=Type 1, 2, or 3 then press ENTER:
    IF %M%==1 GOTO Cape Pack
    IF %M%==2 GOTO CALC
    IF %M%==3 GOTO EOF
    :Cape Pack
    cd %windir%\Program Files (x86)\cape211\...
    This topic first appeared in the Spiceworks Community

    I am trying to create a batch file that allows a user to be prompted to put in a value and then launches the program associated and that particular file. In this case the files are CIF files that pull up saved data inputs. Below is my script so far and what I am trying to accomplish is the user presses 1 and hits enter and is prompted to enter the CIF file name, then the application launches and the paramaters open the selected CIF file.ECHO OFF
    CLS
    :MENU
    ECHO.
    ECHO ...............................................
    ECHO PRESS 1, 2, for your task or 3 to EXIT
    ECHO ...............................................
    ECHO.
    ECHO 1 - Open Cape Pack CIF FIle
    ECHO 2 - Open Calculator
    ECHO 3 - EXIT
    ECHO.
    SET /P M=Type 1, 2, or 3 then press ENTER:
    IF %M%==1 GOTO Cape Pack
    IF %M%==2 GOTO CALC
    IF %M%==3 GOTO EOF
    :Cape Pack
    cd %windir%\Program Files (x86)\cape211\...
    This topic first appeared in the Spiceworks Community

  • How to create a batch file for a java program?

    I have a java project in JCreator and the project is organised into packages. I have also configured JCreator to provide 2 arguments to the main method when the project is executed.
    I would want to create a batch file (.bat) for this project where the batch file can automatically use the arguments set in JCreator when the program runs.
    How do I go about creating the batch file?

    where the batch file can automatically use the arguments set in JCreatorThat all depends JCreator... can you get those arguments somehow?

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How we can create the batch file to download the data in from URL in ssis

    hi,
    any one help on one the below requirement.
    i have to create one batch file to download the report(reports is in csv format) from URL...
    requirement should be like this...
    1. we have some reports is there in the URL..
    2.when ever we execute the url, the report should be download and save it to the local folder.
    3. this requirement i have to write in the batch file
    should any one let me know how we can create the batch file for the above requirement.

    Hi Priya.N,
    If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
    batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
    Report Server Web Service
    ReportExecutionService.Render Method
    rs Utility (rs.exe) (SSRS)
    If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
    Regards,
    Mike Yin
    TechNet Community Support

  • Calling a bounded task flow (that uses fragments) from another application

    Hello,
    I'm currently having difficulties calling a task flow located inside another application.
    I have application Console which is my main application in which I would like to run other applications within. Inside this Console I have it divided into splitter windows and inside them I have regions. My goal is to be able to call a task flow from another application inside one of these regions but so far I'm having no luck.
    My first problem occurred when I created a 'local' task flow to make a call to another application's task flow. When I set the properties to the task flow call, it gave me an error that it could not find the .XML file for that task flow when I ran the Console application. I then proceeded to copy that .XML from the remote application into the Console's WEB-INF directory and I seemed to get a bit farther. The error I get now is saying that I cannot run a task-flow that uses fragments. It's essentially trying to run that task flow as an entirely new page instead of inside the region that it's bound to. It's NOT a dynamic region (although that's the end goal here). So I then changed the other application's task flow to simply display an entire page rather than fragments inside a region and voila, it works..... kind of.
    To recap how I was able to call another application's task flow inside the Console:
    - I had to manually copy the task flow xml file into the Console WEB-INF directory
    - I had to change the task flow so that it didn't use fragments
    - I have called the task flow but I lose my console page entirely, no more regions or splitters so I'm back to square one.
    If anybody has any suggestions, hints, tips or anything, send them this way and I will be forever greateful.
    Thanks,
    Mark

    Thanks for your response Frank.
    Unfortunately the problem seems to be greater than that. I've been able to package task-flows into a jar library and tried importing them that way with no luck.
    I'm simple trying to call an external task-flow to run inside a region which is inside a splitter panel that I call my console.
    Any other ideas ?

  • Duplicate contacts when created from another application like Mail

    When adding a contact to Address Book from another application (from an email signature for example) two of the same contact are always created.  This does not happen when creating a contact from within Address Book.  Anyone have this problem and correct it?

    known bug, please send feedback to apple about your situation. http://www.apple.com/feedback/macosx.html
    Address book has a feature "look for duplicates" under Card in the menu bar. This will merge duplicate entries into on. But now I have some weird double names (but they're one contact/one card).

  • Canother when them from another application eg imovie? 150 files but only 30 show.

    Aperture 3 help please. Can anyone tell me why I lose photos from files when trying to access them from another application eg imovie? file may have 80 photos but only 20 might be seen in application.

    Can anyone tell me why I lose photos from files
    Do you mean from folders, albums, or projects?
    How do you access your Aperure images from other applications? Do you show Aperture in the Media Brower?
    Then you need to ensure that Aperture renders previews for all  images you want to access externally. Check your settings in the Aperture Preferences -> Previews and enable "Share Previews ..." and "New Projects automatically generate Previews". If reviews are missing for older imports select the images, ctrl click and "Update Preview".
    Regards
    Léonie

  • When accessing the any tasks from Fusion Applications homepage, "An error was received for the task Manage Worker Goal Setting Lookups. This task is identified with the code HRG_MANAGE_WORKER_GOAL_SETTING_LOOKUPS that invokes program /WEB-INF/oracle/apps/

    We have installed HCM and CRM modules on Fusion Application 11.1.7 version.
    This is 2 node architecture ie IDM components installed in one node and Fusion components installed in another node.
    We are able to start the IDM components and Fusion components successfully, but when users are trying to access any task from Fusion application home page, they are getting the below error
    A portlet consumer error was received for the task Manage Worker Goal Setting Lookups. Report the error details to the following owning product Goal Management.
    An error was received for the task Manage Worker Goal Setting Lookups. This task is identified with the code HRG_MANAGE_WORKER_GOAL_SETTING_LOOKUPS that invokes program /WEB-INF/oracle/apps/fnd/applcore/lookups/publicUi/flow/ManageCommonLookupsTF.xml#ManageCommonLookupsTF of module code fndSetup. Review the consumer and producer logs for more details on this error.

    This may be related to the other issue regarding "FUSION_APPS_WSM_APPID-KEY" as the logs contains exceptions like:
    oracle.wsm.policymanager.PolicyManagerException: WSM-02081 : Failed to login to perform requested action.
    Please refer to document Fusion Application Service Account Password Expiration Causes Portlet Producer Errors (1486388.1) for steps on how to verify and set the password. There is also exception:
    javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: User FUSION_APPS_PROV_PATCH_APPID denied
    This is also likely caused by an expired password, please see Fusion Apps Servers Are Not Starting Up - Password Policy Error :9000: GSL_PWDEXPIRED_EXCP :Your Password has expired (1629927.1).
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • How to create a batch file

    Hi,
    I have a project named Haridwar which i made using net beans and resides in the location(C:\Documents and Settings\nijesh\My Documents\NetBeansProjects\HARIDWAR) it has a build folder in which the classes folder contains the haridwar.class file and a src folde that has a haridwar folder in which my java file resides (these are created automatically by netbeans) what i want to do is
    1. create a jar file for this project
    2. create a batch process that runs my jar file every day.
    can some one please help me in how i should be doing the two processes.
    Thanks in advance

    Google for "java executable jar" and follow the directions.
    .bat files can be created with any text editor.
    Scheduling can be done with Windows OS capabilities.
    %

  • How to Create a batch file to display and count specific words in log file

    Hi All,
    I have requirement Program to be written that will go through a log file and look for following key words.
    Unexpected Essbase error
    And also it will count the # of times the word error appear in a log file.
    You may use batch file or Perl script to complete this task.
    e.g. in the log file - It will flag yes that keyword "Unexpected Essbase error" found and word error occurs 9 times.
    Pls help me in know process to achieve above requirement.
    and pls let me know what is perl scripting ?
    Thanks in Advance
    Regards,
    SM

    Sorry but it sounds like you have been asked to do something and you have pasted the requirement on the forum, have you done any research to find out which scripting language you are going to use or any find examples, there are so many differents examples and help on the internet it just takes a little bit of time and investment.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Is it possible to create a batch file in Mac OS?

    In MS-DOS, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. It's very convenient and handy. Is it possible to do the same in Mac OS? I tried the automator of Mac OS and copied the workflow, but it is quite clumzy and painfully slow, and stops working afte a relaunch.

    Having come from a Apple ][ & DOS background, it took me a while to learn Automator. It's more graphical so some concepts took a "AHA!" moment. You don't mention what "stops working" but likely it's "just" a step that is missing from your workflow. For example, in one of my workflows, the "AHA!" was realizing I needed to specify a name by "Get Specified Finder Item" before I could work with it.
    Perhaps you'd be more comfortable with Applescript, especially if you've done any C or other programming language beyond batch files.
    If you're up for it, or if your needs are that complex, you could create shell scripts. In fact, my latest Automator work flow calls a shell script because it's actually the KeePass Windows executable run in Mono. I know I probably could have done the whole thing as a shell script, but Automator was easier and would have been simple if it wasn't for this one shell script.

Maybe you are looking for

  • Deploy par file error using NWDS

    Hi I developed a portal service for activity report. After i deploy the service i get an Java Iview Runtime error in portal and our portal is down. I found the error which is a null reference in portal service i wrote.I fixed the problem, but i can't

  • Apple support page "generic error" message when I want to open a case

    the case is 2 folds, I been trying to register my ipad 2, which I bought at the same time and location togther with macbook pro 13", the macbook product registration went throuh fine, but for the iPad I got the message that the product is already reg

  • HT204266 Why did my lock button suddenly stop working?

    I just recently bought the Iphone 5. Its only been a couple of months and my lock button suddenly stopped working. My Iphone 5 isnt the only one that has done this, I know many other people whose phones have done the same thing. Does anyone know why

  • CS6 license doesn't work

    After more than a year of working properly, my CS6 Master collection mac UK installation now asks for a serial code. The activation code I have (the original one) doesn't work. Pretty sure I didn't but a temporary license. I guess someone needs to ch

  • Strange BIOS Boot Listing--New L775D-S7132

    I have a new Satellite L775D-S7132 acquired just 2 days ago after my Windows 8 fiasco. I have a question about the BIOS.  It is an Aptio BIOS the same as my older L675-S7016. The new 775 BIOS will NOT recognize a USB flash drive, bootable or not. It