Batch command help ?

Hi Guys I have this batch file called via ant build script.The batch file has 10 different function .Now i have this requirement to break it into smaller parts.
Example the functionality should now be broken into three parts
1)employee data processing
2)employee working days
3)employee salary
4)employee promotion history
1)employee data processing
2)employee working days
3)employee salary
1)employee data processing
2)employee working days
4)employee promotion history
Problem is absence of OR statment in batch file will force me to write this
command in separate batch file.(I was trying to put it into one so that I dont have to repeat statments).Basically I was trying to execute target and target will execute the batch file with a parameter,which will then decide which functionality to execute , but in absence of OR is causing me some headache.Not able to decide the best strategy.

help.Cut it out already.
We've been nice considering this is a Java forum and not a
Windows batch file forum.
Your problem may be that you just dont know enough about
batch files.
http://www.robvanderwoude.com/index.html
http://www.google.com/search?hl=en&q=batch+files+if

Similar Messages

  • Batch command in FileAdapter

    Till yesterday the batch command in file adapter working fine, from today none of the batch commands in file adapter are not working. Please suggest the solution?

    I have a requirment where i have to raise PI alerts when proxy exceptions getting triggered.
    I came to know , we have to call function module 'SALRT_CREATE_API' in the proxy.
    Can any one let me know the step by step configuration as iam already reffering to
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/content.htm
    Any pdf would be appreciated?

  • XI to Batch Command Scenario

    Hi All,
    My scenario is SAP to XI to Batch Command.
    The receiver system is a listening port system where it receives data at the port. Currently XI is not the middleware. So the communication happens through EXE. It happens as follows:
    1. exe sends a wake up call to Batch Command.
    2. Command Batch sends an acknowledgement to exe that it is ready to receive data
    3. Now exe sends data to CB.
    4. CB sends Ack for data
    5. exe sends a sleep call to CB to close connection
    6. Cb sends Ack back to exe.
    Now exe has to be replaced with XI , so is this set of Communication possible through XI in the same scenario? If yes , then How.
    If no what can be the solution.
    Also will the Standard adapters in XI serve the purpose for Command Batch since it is not any File system , but it receives data at the port or will Custom adapter will have to be developed for this purpose.
    Please help.
    Thanks & Regards,
    Loveena.

    That sounds like a proprietary TCP/IP handshake.
    There is no way besides own development of Java code.
    You could develop an adapter or a Java proxy for this purpose.
    The better option is, replcing the batch command with an HTTP or Webservice enabled program and use standard PI functionality.

  • Batch commands

    Hi,
    I am getting followin error
    org.apache.commons.digester.Digester error
    SEVERE: Parse Error at line 5 column 19: Document is invalid: no grammar found.
    org.xml.sax.SAXParseException: Document is invalid: no grammar found.
         at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
         at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig.java:977)
         at org.apache.catalina.startup.ContextConfig.tldScanTld(ContextConfig.java:1006)
         at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:870)
         at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
         at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
         at org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    [Microsoft][SQLServer 2000 Driver for JDBC]Statements that produce result sets are not allowed in batch commands.
    [Microsoft][SQLServer 2000 Driver for JDBC]Statements that produce result sets are not allowed in batch commands.
    For input string: "sdfc"
    I am using the Tomcat version 4.0 and my xml file has correctly <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    And the application correctly identifed the servlet and throwing this error from the servlet. Can anybody help in this regard.

    I don't think so. I believe your server.xml or your web.xml file is malformed. This means that the DTD that the container validates the file against is not in agreement with the XML you created. See if you can start commenting out elements in your web.xml until the server starts properly to zero in on the problem. Or, if you are comfortable reading DTD's, go straight there to find out the problem.
    - Saish

  • Batch Command Warning Dialog

    Hello All    
    I've set-up an action to resize a folder of photos.  Recorded the action, all is good.  I go to AUTOMATE > BATCH and go through the set-ups, etc., but when I activate the run, I keep getting this warning dialog:
    "Could not complete the Batch command because the disk is not available". 
    At first I thought it may be looking for the SD card the photos were copied from, but that's not the case as I have imported all the photos and they now reside on the HD.  I've tried restarting Photoshop and even restarting the system - both to no avail.
    Any idea as to what this dialog is referring to?
    Running :
    Photoshop CC
    27" Late 2013 iMac
    3.5 GHz Intel i7
    16 GB RAM
    NVIDIA GeForce GTX 780 Graphics
    OSX 10.9.1
    Any help would be MOST appreciated!!
    Keith

    If all your doing is resizing image to fit within some size you don't even need an action unless you replacing the original files which is not a good idea in any case. For if something goes wrong you could wind up loose everything.
    Use menu File Scripts>Image Processor.  In the Image Processor Dialog point to the source folder set the output locarion set image file types yoo want to save and the size and option. You can even include actions.
    There is also Image Processor Pro a free download which is a more powerful script.

  • Batch command to find java version

    Hi
    I need to get the version of java runtime env on a machine using command prompt (more specifically in a batch file). java -version at command prompt gives me the version and other stuff. But has anyone written a batch file that extracts values like 1.3.1 or 1.4.0 by executing a batch command??
    Any suggestions woul dbe helpful
    Thanks
    VP

    Here's my thoughtsjava -version 2>tmp.txt         //pipe version to file
    find "java version" tmp.txt|find "java version">tmp2.txt  //just get info
    del tmp.txt
    for /f %i in (tmp2.txt) do @set version=%i  // set a variable
    del tmp2.txt
    set version=%version:~10,5%                 // you get offsets
    @echo %version%You will need to debug this.
    P.S. IS this Java Programming?

  • Batch command line in the Discoverer 4i

    Dear All,
    I am searching for an answer regarding the chance to use the batch command line in the Discoverer 4i user edition to export an xls file with the pivot format.
    It is not possible to do this in the previous version, but it's possible in the 4i version choosing the xls pivot format while exporting the report interactively.
    So we are looking for a specific parameter to be used in the command line.
    Thank you for your help,
    Carola Buora

    Hi Carola,
    May I suggest reposting this question to the Dicoverer forum
    http://forums.oracle.com/forums/forum.jsp?id=422740
    Your chances for getting the right set of answers are probably much better there. Hope this helps.
    Cheers,
    -lars

  • Fireworks batch command changes original colors

    Is anyone having this problem? When I run a batch command on CMYK jpgs, it changes the files to RGB mode and in some cases the colors are drastically changed. I am aware that the 2 modes  will display colors "slightly" different, and I don't mind the final product being RGB, but the way Fireworks handles it is too extreme. When I change modes in other bitmap programs, like Corel PhotoPaint or Adobe PhotoShop, the overall conversion is very much acceptable and the color change is so minute that it's hardly noticeable.
    And before you jump down my back about using "non Adobe" software, keep in mind that all software has it's strong and weak points and I've been using the program  that gets the job done right since they  were introduced back in the late '80s.
    Fireworks is one of my favorite programs, and the batch command saves time, but the color glitch is unacceptable. Does anyone know of a fix for this or a possible workaround (without creating more steps than the batch command saves)?

    Open the Actions Panel and click the Panel property icon, you should see a few extra Action sets that don't load automatically by default - namely, the Production set. Select that one and in this set are a few items to check out/scutinize/learn from to help create the action you need.
    On another note, here's a link to an olden golden that makes use of Conditional statements that may fit your needs
    http://actionlogic.blogspot.com/
    Though I have not tried this with newer builds.
    h

  • Can't select files when using Automate batch command

    Hi all,
    I'm having a huge problem here.
    I am working with CS3 on a mac (leopard).
    I batch process (when applying actions) all the time using the Automate/Batch process command.
    I have been doing this for years on my computer but all of a sudden it has developed a problem. When I bring up the batch command and select a source folder, I am not able to select any of the files (jpgs/tiffs) . They are not highlighted for me to select them.
    So far I have deactivated and re-installed CS3 on my computer. Still not working. So, I have downloaded CS3 onto my laptop and taken the files from my desktop onto the laptop and the problem is the same. Like I said, this has just started happening for no reason after years of working fine.
    Please, please, can anyone help.
    Thx.
    Richard.

    I hardly use the feature, so I may have missed some change, but »Folder« seems to indicate that You are to select a Folder, not Files.

  • Config Manager 2012 client upgrade (via package with batch commands)

    Hello all,
    I would like to kindly ask for your help with my question regarding a SCCM 2012 R2 client upgrade (from RTM to R2)
    Recently, we have upgraded from RTM version of SCCM2012 to R2 (with the PXE hotfix applied)
    During the process, I have choose not to upgrade clients when the SP1 was applied and go straight for the R2, which is not a problem I believe. 
    My question is regarding the pre-created packages, that are showing up in the console. I believe, that they are the easiest way to upgrade clients via packages in SCCM. (we can't push the installation due network policy)
    This hotfix is stored here: \\"FQDN_site_server"\SMS_TSP\hotfix\KB2905002\Client\x64    (in case of x64 version, x86 is the same but x86 in the end)
    The executed file from this path is this with this command following: 
    msiexec.exe /p configmgr2012ac-r2-kb2905002-x64.msp /L*v %TEMP%\configmgr2012ac-r2-kb2905002-x64.msp.LOG /q REINSTALL=ALL REINSTALLMODE=mous
    Anyway, when we install the clients when we deploy it for the first on a machine, that has no client or we reinstall it, we do it with help of this batch command:
    set curdir=%~dp0
    %curdir%ccmsetup.exe SMSSITECODE=TSP /NoCRLCheck /UsePKIcert /forceinstall SMSMP=HTTPS://CML.LTSPRAGUE.CZ CCMHOSTNAME=CML.LTSPRAGUE.CZ
    I just need to know, if I can use the prepared package from the console in our case and if it will keep the settings when the package is deployed.
    I belive I have found a similar questin here on the forums:
    http://social.technet.microsoft.com/Forums/en-US/c9b40687-1843-44c7-b61b-fd26d53ab90b/cumulative-update-3-and-agent-upgrade?forum=configmanagerdeployment
    The second answer might the answer I'm looking for, but can you explain that to me like I'm five years old? :)
    Please, let me know.
    The IT guys from LukOIL

    I'm not sure, because of my short time at  the company, but there are historical security reasons for setting the push installation off. 
    Second reason are strict firewall rules used here. SCCM Agent may contact site server through HTTPS - that is a one way communication, so push installation isn't possible.
    Don't mix "client push" and "automatic client update". See
    http://blogs.technet.com/b/configmgr_geek_speak/archive/2013/09/09/using-configuration-manager-automatic-client-upgrade-to-upgrade-to-the-latest-system-center-endpoint-protection-client.aspx for further details. (And yes, the article talks about SCEP, but
    it also tells details about the entire process)
    Torsten Meringer | http://www.mssccmfaq.de
    Thank you for the article and your, but I find it easier to deploy packages right now.
    I have found out, that there is a folder named "ClientUpgrade" in ConfigMgr installation folder.
    I used this and made a package out of it. Deployment went fine as well as the installation of the upgrade for the client, but there is a problem now, that I don't see any software in the "Software Center" in "Available Software" - and there should be, since
    I have may SW pointed to me and the list was populated before I have done the upgrade to the new version.
    This may be a simple problem, but I really don't know what's wrong.
    The IT guys from LukOIL

  • How to flip multiple frames using batch command

    Using Fireworks 8.
    I have a document with over 200 frames. In the "Command"
    --> "Batch Commands" menu I have the option of rotating and or
    blurring multiple or individual frames.
    What I'd really like to do is flip all 200 frames
    horizontally but there is no option to do this simultaneously.
    Or is there?
    Tell me I'm not stuck with the only option of flipping each
    frame individually.
    I flipped one frame and saved my actions as a command but
    this "Flip" command could not be applied to multiple frames.
    Help me out.
    Thanx.

    You'll need to use the onion skinning feature of the Frames
    panel, as
    Alex indicated.
    Go to the frames panel. Set all frames to onion skinning (the
    box on the
    left side of each frame - click on the top frame in the onion
    skin box,
    then click on the bottom frame. You will see a line
    connecting all the
    frames) then click and drag over your entire canvas area to
    select all
    the frames. If you saved the command, you will find it at the
    bottom of
    the Commands menu.
    This does work, I just did it.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver
    Cashcomm wrote:
    >
    quote:
    MODIFY > TRANSFORM > FLIP HORIZONTAL. Do it once then go
    to the history
    > panel and save this as a custom command. You can then
    access it from the
    > batch operations.
    > However this will only affect the first frame on the top
    layer unless
    > the other frames or layers are manually selected.
    >
    > Thanks for your answer Jim. I did just as you described.
    I selected fram 1,
    > then I selected the layer in that fram from the layers
    panel. I flipped it usig
    > the MODIFY, TRANSFORM menu. From the history panel I
    saved this command as
    > "FLIP".
    > I then selected frames 2-10 holding down the SHIFT key.
    Then I went to the
    > Command menu and selected my 'FLIP" command and got an
    error message telling me
    > that it could not apply.
    > I tried to find where my Flip command is saved thinking
    that if I go into
    > explorer and drag it to the Batch Command folder that I
    could use it. BUt I
    > couldn't find my FLIP command even though it works
    perfectly if I am changing
    > one fram at a time and only then if I select the layer
    in that frame first.
    >
    > Apparently saved commands don't work on multiple
    frames.
    >
    > So I'm in a position where I would have to use the flip
    command or MODIFY -->
    > TRANSFORM command manuall on each fram individually.
    >
    > This is frustrating.
    >

  • Batch command to auto login

    We are using Sony MBPS and it has to be rebooted every month.  We have automated much of it using batch files but we would like to further automate it.  Is there a batch command to trigger an automatic login of the servers?

    Automatic logon can be configured through registry:
    http://support.microsoft.com/kb/315231/en-us
    The article mentions Windows XP, but it is valid for all later versions of Windows. This is how we do it. We deploy the registry keys through group policy to the machines that need automatic login.

  • Batch Command Freezes up CS5

    Suddenly, when I use the batch command, CS5 freezes up and has to be closed using alt-ctrl-delete. I've been using the command for a long time with no problems. All the other commands under the "Automate" line work.                                                                                                                                                                                                                                                                                                                                                                                I reinstalled CS5, and it appeared to fix the problem. However, when I scanned a BUNCH of photos, and went to use the command, it froze again. Any ideas?

    Ok since I got some free time, I updated to 12.0.4 again, with reallocating the temp path.
    The freezing bug is still there, and it's still creating those .mvm file(1-14 inside the C:Temp. and 15 at the root of E). Since http://forums.adobe.com/thread/747353 is still discussing this issue, I'll leave it for a while.
    With the update, my selection issue is also remaining there, I'd like to talk about it, since it's not only happnening to selection or magic tool, but to any tools  involving moving cursor.
    http://www.photoshopgurus.com/forum/photoshop-troubleshooting/29186-photoshop-cs4-cs5-acti ng-like-they-possessed.html
    http://digitalweddingchat.com/showthread.php/14289-weird-mouse-problem-in-PS..-posessed-mo use!
    I'll save myself the trouble of describing since the above posts have done it really well. And their fixes do not apply to me.
    What I could add to this:
    1) Regarding the selection tool, this issue mostly happens after I move my cursor, and once it's "activated", I could just click like hell without moving my mouse at all, while creating a crazy record of below( simply caused by clicking mouse, which
    "moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>moving marquee>cancel selection>".
    But if I simply open PS, and start clicking on the picture with selection tool, keeping my mouse from moving in the first place, then usually I can't duplicate this issue.
    2) Also, the issue will also occur if I move my mouse and click, but we could get some hint if we duplicate it this way.The unintended selection caused by this issue, which we take rectangular selection for example, will have a corner at the place where I ever put my cursor at. So from my point of view, it's like photoshop is ignoring my action, which is releasing the left button. For PS, I first move my mouse to point A, pushing left button down, (igored)releasing left button(ignored), moving mouse to point B,and a new unintended selection! Though this pattern only occurs sometimes of the issue, but it might hold some word.
    3) As I keep testing, the easiest way to duplicate the issue is to move my mouse for a long distance and click, opposed to rapid small displacement and click.Well not that useful.
    4) The way I deal with it now, is to endure it. I keep reselecting and usually the issue will disappear for a while, and come back at unknown future. I tried changing my mouse/graphic card/memory, as well as their drivers, ended up no fixing.
    Any idea on this, Noel?
    -Monkey

  • Batch command unavailable

    Suddenly when I select multiple images in Bridge, then go to Tools>Photoshop>Batch, I get the message "The command "Batch" is currently unavailable."  Batch is also greyed out in Automate.  This occurs when no other processes are happening.  What could  it be?  Batch command has always worked fine in the past.

    So File > Automate > Batch in Photshop is greyed out?
    And would you mind providing the relevant information about your set-up (Photoshop-version, OS etc.)?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • Batch command for using Java in IE

    Hello,
    I'm looking for a batch command that sets IE to use Java (Sun).
    It should do the same job as if manually checking the check box of 'Use <java version> for applet' in advanced internet options of IE.
    Is there a way to do it?

    Sorry, currently there's no batch command to set IE to use Java from Sun.
    There're quite a few registry keys need to be set when that option is selected.
    Registry settings for:
    - turning off console for MSVM;
    - hooking up Sun's Java console to IE;
    - adding a "TreatAs" to the Web Browser Applet Control so that applets with applet tag will use Sun's Java;
    etc.

Maybe you are looking for

  • Printing on an HP Laserjet 5M through a Windows XP PC

    Hi, At our office we're running 10.3 and 10.4, as well as Windows XP. The XP computers are hooked up to the printer (HP Laserjet 5M & HP Deskjet 820 Cxi For Windows). Now, I've gotten my Mac (running 10.4) to actually see and communicate with the pri

  • [Office Web Apps] WacPipe.CreateIdFromRawId: could not find basedoc

    Hi, I have a problem with getting PowerPoint file information from urls like: http://server/_layouts/MobilePresentation.ashx?PresentationId=/sites/xyz/presentation.pptx When I am trying to access this url I got an error: Unknown SPRequest error occur

  • Problem with BAPI BAPI_REQUISITION_CREATE

    Hello, I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisi

  • Reading Output Of dump Command

    We're migrating our software build environment to some different hardware. My job is to try to verify that the binaries built on the two systems are the same. The problem is, Any two binaries I build, even on the same system, have some differences. I

  • Why won't Colorfly C3 MP3/WAV player appear on my OSX 10.9.5 desktop?

    Hello. I've just bought a Colorfly C3 MP3/WAV player. It won't appear on my OSX 10.9.5 (Maverick) desktop - but will appear on the desktop of an older computer running Snow Leopard. As all my music is in iTunes on my Maverick OS - I need it to work o