Batch File Command Line

Hello dears
Please guide me about below command:
@echo off
cd\
cd inetpub
cd temp
cd Host_4.1.11.5
md IPC
move SecurityOld IPC
xcopy Accounting IPC\Accounting /s /i
xcopy OrgFundamental IPC\OrgFundamental /s /i
setlocal
set "location=c:\inetpub\temp\Host_4.1.11.5"
for /d %%d in (%location%\*) do (
md "%%d\bin"
move "%%d\*.dll" "%%d\bin"
ren "%%d\*.exe.config" "web.config"
rd "%%d\IPC\bin"
i need exclude two folders from %location% in for section.
please guide me.

Try this cleaned up version. It will skip folders xx and yy.
@echo off
setlocal
cd /d \inetpub\cd temp\cd Host_4.1.11.5
md IPC
move SecurityOld IPC
xcopy Accounting IPC\Accounting /s /i /y
xcopy OrgFundamental IPC\OrgFundamental /s /i /y
set location=c:\inetpub\temp\Host_4.1.11.5
for /d %%d in (%location%\*) do call :Sub %%d
goto :eof
:Sub
if %*==xx goto :eof
if %*==yy goto :eof
md "%*\bin"
move "%*\*.dll" "%*\bin"
ren "%*\*.exe.config" "web.config"
rd /s /q "%*\IPC\bin"

Similar Messages

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Using JSP to run batch file - command launches excel but doesn't open file

    I have written a jsp on a server which runs a batch file. Every command line in the batch works fine except the following:
    CALL "C:\Program Files\Microsoft Office\Office\Excel.exe" C:\Temp\spreadsheet.xls
    I can see that a command prompt has been opened and an instance of Excel has been created, but it does not open the file.
    I tried running the batch file on its own. It worked fine. I tried putting the java code in the jsp into a java class, that worked okay too. I think it might be to do with the fact that the client is trying lauch the application through the web, but it's missing some information such as paths.
    I am totally running out of ideas.. please help

    I guess if I know JSP stands for Java Server Pages..
    I would most probably know it runs on servers.Yes, you might, but if you were assuming that the path you gave would always lead to an executable running on the client you'd have a problem. It's worth asking.
    I must admit it's probably not the best idea, but if
    you can give me some advice on that, that would be
    greatJSPs shouldn't have code in them that doesn't pertain to view. I'd wrap something like a system call or Runtime.exec in a Java Bean that you can test off-line without the JSP. Then have the JSP instantiate an instance, invoke its method, and display the value that's returned.
    You've read this, of course:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    Everyone who uses Runtime.exec should.
    %

  • Could not call batch from command line processing

    I am experiencing a strange scenario where I am able to run the FR report by scheduling a batch in HFM and that creates RecRecon successfully. I am trying to do this as a batch script by using the command line script ScheduleBatch.cmd <xml file> <server name> <user name> <pass word>.
    This fails to create the report and I see an error message as below
    "Problem encountered in 'EMERALD/Admin/RecReport01'
    Error executing query: The member user Point of view for Year doesn't exist in this application"
    Can any one of you help me recover this issue?

    answered by support

  • Batch Monitor Command line Check Progress

    Hey all,
    i was wondering if there is a way to check progress of a file i sent to compressor using command line.
    Thanks
    Lars

    ok so i found a pdf which tells me this:
    Below is a synopsis of the command for monitoring batches. The Batch Monitor
    command is located in /Applications/Utilities/Batch Monitor.app/Contents/MacOS.
    Batch Monitor [-clustername <name>] [-clusterid <user name:password@IP address:port
    number>] [-jobid <identifier> -batchid <identifier>] [-timeout <seconds>] [-query
    <seconds>] [-help]
    i tried putting that in but the result i get is Batch: garbled time
    any ideas
    Thanks
    ars

  • Batch File Commands

    Hi,
    I have my oracle database with following details:
    OS- Windows 2003 R2 64-bit
    DB- Oracle 10g R2 Enterprise Editiion 10.2.0.1.0
    I want to run a scheduler on OS Level such that it moves the archives log created one hour before the runtime to different location. For example:- If the batch file is scheduled to run at 5:00 pm, it must move all the archivelogs created uptil 4:00 pm to seperate location.
    Please help me how to do it ? I m stuck at how to mention time of creation of all the files.
    Thanks
    Vinita

    1º Sunday you do a backup.
    2º Monday you move archive log.
    3º Tuesday you move archive log.
    4º Wednesday you move archive log.
    5º Thursday database crash.
    1º Restore database from backup of sunday
    2º Recover database... ops, you need all archive logs on his dest... recover fails...
    3º You try to move all archive logs to original dest but you don't have space...
    4º You find a dest with enough space to move all archivelog and recover database.
    I don't know about your scenario but there is not a good backup polity move the archivelog with Os commands. I suggest:
    1º Sunday you do a full RMAN backup.
    2º Monday you do a incremental RMAN backup. With delete noprompt archivelog all backed up 1 times to device ....
    3º Tuesday you do a incremental RMAN backup. With delete noprompt archivelog all backed up 1 times to device ....
    4º Wednesday you do a incremental RMAN backup. With delete noprompt archivelog all backed up 1 times to device ....
    5º Thursday database crash. Use Rman Restore Database; Recover Database;
    You also can use rman backup archivelog with delete noprompt archivelog all backed up 1 hourly.
    . :-) Any help with my english will be welcome :-).
    Edited by: Agustin UN on 03-nov-2010 10:15
    Edited by: Agustin UN on 03-nov-2010 10:16

  • Batch file command

    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
    Yang Shetling

    Maybe I missed it, but where is the Java question?

  • Jar File Command line parameters?

    Can I send command line parameters to jar files?
    eg. >java -jar app.jar arg
    Thanks
    Chris

    Yes, that should work if your manifest file
    contains the hint to the main class.

  • How to make reports on a batch or command line?

    The company where I work have bought recently the Crystal Report product.
    We want to generate reports directly on a directory in batch mode. Everyday, we need to generate some PDFs. Is it possible to write a batch or to use the crystal report executable in command line?
    We develop applications in Java, so if you have some solution using the Java language, it will be better for us.

    I recommend the just-released Crystal Reports for Eclipse Version 2:
    [https://www.sdn.sap.com/irj/boc/crystalreports-java]
    and Java code such as:
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.open(reportPathString, OpenReportOptions._openAsReadOnly);
    byteArrayInputStream = (ByteArrayInputStream) reportClientDocument.getPrintOutputController().export(ReportExportFormat.PDF);
    then take the byte[] from the stream as sream as you like.
    Sincerely,
    Ted Ueda

  • Show specific workflow process name started by batch through command line?

    I have created a batch to start up a workflow process
    "start task for component WfProcMgr with ProcessName=\"xx Import Promotion Rule\", RowId = $1"
    may I know if I can have any means to know the status of task and showing which processes I kicked (i.e. xx Import Promotion Rule)?
    Many appreciations if anyone can help.

    Have you listed the tasks?
    There will be one for WfProcMgr and most likely complete or in error.
    Just list all WfProcMgr to filter the others and you should get what you are looking for...
    Not really sure what you are trying to do precisely so I hope this helps

  • Acrobat 9 - Use Optimize PDF from command-line or batch

    one can use the functionality optimize pdf from the command line or a batch script?
    thanks

    I found the solution. With the batch sequence i create the pdf optimization, and use the plug-in Autobatchtool (from the partner evermap) to run this batch from command-line. Thanks for you help

  • Problem Executing Batch File

    I wrote out a java class that I tried using cfobject to call. It didn't work. So I wrote a batch file to call the java class.  The batch file works, but NOt when I have coldfusion call it. Nothing happens, no error... nothing.  I thought it might be a permissions issue, but I tried changing permissions for coldfusion although I may have doneit wrong since I'm not too familiar with Vista.  Can anyone offer advice on what I can do.  Its a simple java class and I can't get it to run.  no errors in the log.  There isn't much for me to go on.  All I know is that the class and batch file work fine if Coldfusion doesn't call them.

    Amosl wrote:
    To limit the problems with the class itself and cfobject, I've created a batch file to run the class.  The batch file runs the class fine, so long as I execute the batch via command line.  But coldfusion doesn't execute the batch with cfexecute.  the same exact problem with absolutely no error messages.
    Unfortunately, cfexecute is not the easiest tag to debug. In my experience sometimes it confuses more than clarifies.  But trying it is not a bad idea from a troubleshooting point of view.
    However,  if I create a java class in the same folder that doesn't write to the system and only returns variables, it works fine.  This indicates the class path is set correctly and that cfobject does work.
    Yes, I would agree.
    It does sound like it might be a permissions issue. But I have little experience with Vista, so there may well be another cause.  Since it sounds like you are just testing a very simple java class, can you post the code for the class itself as well as the exact cfexecute code you are using? I could test it on another operating system. Just to see if there is some obvious problem.
    Amosl wrote:
    From the 100's of pages I've read online with people with similar problems, this seems to be a permissions issue.  however, I've set Coldfusion to run as me, the administrator and only person who uses this computer.  It is no longer running as local system.
    However, this didn't fix anything.  My only guess is that perhaps I've no set it to run as me correctly.  But I have no way of testing this.  Windows logs show no error messages either.  Is there any way to have coldfusion show me what user its trying to execute the batch as.
    I believe the user account can be obtained from the java system properties.  Try:
    <cfset sys = createObject("java", "java.lang.System")>
    <cfoutput>
       <b>user.name</b> = #sys.getProperty("user.name", "not found")#<hr>
       <b>coldfusion.classPath</b> = #sys.getProperty("coldfusion.classPath")#<br>
    </cfoutput>

  • Using 10g SQL Plus from a batch file

    I installed the Oracle Database 10g Express Client and configured my ODBC and tnsnames.ora settings, and I think I have it all right, because when I open the SQL Command Line I can connect to the database just fine using:
    connect <username>/<password>@<database>
    However, when I try to log in through a non-SQL command line or batch file using the syntax:
    sqlplus <username>/<password>@<database>
    I get the error "ORA-12154: TNS:could not resolve the connect identifier specified." That syntax used to work for me with 9.2. Does the functionality still exist in 10.2?
    Update #1:
    The sqlplus login works from a normal command widow if I first CD C:\XEClient\bin. I still can't get it to work from a batch file, even when I specify the path. Does this mean the batch file command can't find my tnsnames.ora? If so, what environment variable do I need to set? I already have the client directory in the Path and ORACLE_HOME variables.
    Update #2:
    I started randomly trying every Oracle environment variable I could find a reference to, and found that setting TNS_ADMIN to the C:\XEClient\bin directory worked.
    I don't need any responses to this post, so it can be deleted by an admin.
    Edited by: user11241849 on Jan 13, 2010 12:05 PM

    Hi Toni,
    It is my first post here and I though telepathy already operated here :)
    it is Oracle 9 I am talking about.
    actually, I have 2 batch files
    File 1, lets say the file name is batch1.bat and the contents are
    sqlldr user/pwd@tnsname control='Control.ctl'  data='data.txt'
    File 2, batch2.bat and the contents are
    Batch1.bat
    Sqlplus user/pwd@tnsname @callproc.sql
    Now if I run Batch2.bat, then only the first line to be executed which calling the batch1.bat , the second line (sqlplus) never executed!
    Best Regards,
    Yousef
    Edited by: yousef_bayyari on 10-Nov-2009 06:25

  • Need a command line switch to close Acrobat Catalog Index batch file

    I am looking for help with a command line switch.  I am VERY new to scheduling tasks and writing scripts.
    Our office created an Acrobat Catalog Index that needs to be updated on a regular basis.  I created a .bpdx file as follows:
    \\dept\SPDintelshare\Analysis\2nd Hand Transaction Logs\Secondhand Transaction Logs.pdx /rebuild
    This runs via Microsoft Task Scheduler from a .bat file as follows:
    "C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.exe" "C:\Documents and Settings\cutrone0999\Desktop\PawnIndex.bpdx"
    The batch runs just like it is supposed to, but it won't close when it is finished re-building.  I have tried using EXIT at the end of the .bat file and that doesn't work.  I also tried a force close for acrobat.exe and that doesn't work either.  The problem is that if I log off my computer the batch will run as scheduled and when I log back on in the morning the scheduled task shows 'running' and I have to end it.  Then I have to re-start my computer or I can't open any Adobe documents.
    If I leave my computer logged on, the batch runs as scheduled and when I log back on in the morning I have to close the dialog boxes showing the index re-ran and then close Adobe.
    I would appreciate any suggestions.  I have googled this every way I can think of and I'm not finding any results that are helpful.  Thank you in advance!
    Paula Cutrone
    Lead Crime Analyst
    Onondaga Crime Analysis Center
    Syracuse, NY

    Acrobat can be opened by a Windows batch process, but a Windows batch process can not trigger a batch process/Action within Acrobat.  It is possible with MacIntosh's Apple Script to open a PDF and run Acrobat JavaScript but not interact with Acrobat's Batch Processing or Acrobat's Actions. Note that opening a BPDX file is different than opening an Acrobat Seq file.
    The catalog/index scheduled update is not part of Acrobat "Batch Process" or "Action". The running of rebuilding of the catalog/index is controlled by the values within the  BPDX file. So if one opens the  BPDX file with Acrobat and a catalog/index is scheduled to be rebuilt or past the scheduled date and time, then the catalog/index build is submitted for precessing by Acrobat..
    Now the issue is how to close Acrobat after this processes has completed. Since Acrobat does not communicate with the Windows OS system, the Widows scheduled process has no way to know when this task has completed. Even though one can use JavaScript to test the status of a submitted Catalog/Index build/rebuild there is no communication of the submitted catalog job unless quired by Acrobat JavaScript. If you check the Acrobat JS API Reference you will see there are 2 possible results for a catalog/index rebuild, a completed rebuild and a termination with errors. One of these should require additional action.
    Further, a recent update to Acrobat JavaScript has added restrictions to using JavaScript to "closeDoc" method which may need to be addressed.
    It is also possible to open an FDF file and add/run JavaScirpts within a PDF, and again this is different than running a "Batch Process"/"Action" in Acrobat.

  • Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Q. Any command-line options for Digimarc and Elements 7 batch file processing?

    Are you a digimarc subscriber? You would be better off asking them, if so.

Maybe you are looking for