Commands within the batch file?

Is there any way to enter commands directly into the batch file which will take effect on the java application?
For example within the java application, there is a method "reload()" and to call that method you can type "reboot" and press enter in the batch file, is that possible? Thanks.

I run my java application with a file (run.bat) (windows xp).
@echo off
title Stanyer's 503 (server)
cd bin
java -Xmx1024m net.stanyer.server 43594
pauseSo basically, it runs in a cmd box.

Similar Messages

  • Sqlplus commands from withing the batch files

    Hi,
    Oracle9.2
    need to execute the sqlplus commands from withing the batch files without calling the .sql file separately . How it can be done ?
    With Regards

    Hi,
    I agree with you...but as per your solution, after all you are calling the .sql file while connecting the sqlplus which I know already and I don't want to execute the sql commands like that as shown below.
    For example:
    for shut down the database and starting it again .sql files will be called as shown below
    Note: shutdown.sql file will contain simple database shutdown command.
    sqlplus -s "sys/%password%@%tnsname% as sysdba" @D:\shutdown_db.sql
    and again for restarting the db i will perform as below
    sqlplus -s "sys/%password%@%tnsname% as sysdba" @D:\start_db.sql
    But I want to get it executed directly from the DOS batch file.
    The thing is I want to execute this both the above database commands from the batch file itself without calling the .sql files separately as shown above.
    is it possible, so how it can be done ?
    Regards
    Edited by: user640001 on Feb 9, 2011 9:53 PM

  • Maxl within Windows Batch File

    Hello,
       I am trying to schedule an Automatic Essbase Archiving command . Function is to Disable connects , Archive , Unarchive and Enable connects . I know the Maxl commands which perform this action but just wanted to make sure how to portray this within a Windows Batch file.
    Within the Batch file , abc.bat can I insert those commands . To enter the shell we need essmsh command , but I didnt wanted to get into decrypting , encrypting the ID etc to do that . So is there a way to get it done within the Windows batch file ?
    Thanks !!

    Yes its Straight forward case ,create a batch file which call the maxl script.The batch file should contain the user id and password of Essbase and the maxl script should contain the parameters of Essbase archiving
    The content of batch file for Essbase archiving process
    echo off
    set ESSUSER=admin
    Set ESSPWD=Password
    set ESSSERVER=localhost
    set ESSAPP=Sample
    set ESSDB=Basic
    SET ESSBASE SERVER PATH=D:\Hyperion\Middleware\EPMSystem11R1\products\Essbase\EssbaseServer
    set MaxlScript=D:\Hyperion\Middleware\user_projects\epmsystem1\Essbaseserver\essbaseserver1\bin
    essmsh "D:\Archieve.mxl" %ESSUSER% %ESSPWD% %ESSSERVER%
    ===================================================================================================
    Maxlscript Content for Archieving
    spool on to "D:/bck.log";
    set timestamp on;
    login $ESSUSER $ESSPWD on $ESSSERVER;
    display session all;
    alter system kill request all;
    alter system logout session all force;
    export database $essApp.$essDB all data to server data_file 'd:\alldata.txt';
    alter database $essApp.$essDB force archive to file "D:/sample.arc";
    alter database $essApp.$essDB end archive;
    spool off;
    logout;
    exit;
    Similarly can you create batch files for Cube restoration .I hope the above example helps you
    Thanks,
    Sreekumar Hariharan

  • How to run the batch files

    Hi Experts,
    I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
    Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
    Thanks,

    There is task type as command in workflow manager if you want you can go for that during the load
    nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
    Check these urls
    http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
    http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html

  • Linking Questions cs5: Linking within the Same file, Sharing links, file size bloat

    I have to make print cards for my job. Print cards being a 1 page version of the Larger package layout that the place I work manufactures. On this print card is a section for customer info on top, and the print representation on the bottom. What I've been doing is using two files. The first file is the full-scale art on one artboard, and the customer info on the second artboard, but both within one file.
      On the second file, I combine the two. I still use two artboard because it's a front and back print-off. The front page (1st art board, 2nd file), is the customer info at the top (linked from the 2 art board, 1st file) and the full art shrunk to fit below (also linked).  the back page (2nd art board, 2nd file) is the individual elements of the artwork, zoomed in for easier viewing. For the second page, I use masked links from the fullsize art, sized appropriately. The reason it's important that they all use links, is so if I update the art, it will update the print cards as well.
      I've been trying to stream-line this process. This works ok, but the numerous links bloat the file size, and I have to email these to customers. I've started using "Flatten Transparency" on all my Print cards (2nd file) and saving it as a separate .pdf. This cuts out the links, but then all of my masked images are hiding the whole original file behind their mask. So then I started manually cropping each individual masked area, which helps, but once I've gone through this whole process, I don't think I've saved any of the time my template was supposed to save.
    file://localhost/Users/troubleinthemaking/Desktop/PRINT%20MINI%20EXAMPLE.pdf
      My questions are these:
    Is there any way to link to elements within the same file? Like from a different artboard?
      I've successfully 'Placed' an artboard from the same file, back into that file (but a different artboard), but this creates a never-ending Save/Update loop. I'd like a better way to do this.
    Is there a way to have all instances of a linked file, draw from the same place? i.e. When you update a single link, all instances of that Link would update. plus this would, in theory, cut down on the file size.
    Is there any way to automatically have every masked link crop itself after using the flatten transparency command?
      Even if I had to select them first. I haven't had any luck selecting them all and then using the pathfinder crop tool. I've had to do each one individually.
    I know this last one can't really be answered without seeing everything on my machine. I don't even know what info I'd need to give...
    WHY MY FILE SIZE SO BIG!
    Thanks ahead of time.
    -Jefferson

    Jefferson:
    There's a few things you can do to make your files smaller, such as using the Action "Delete All Unused Panel Items" which will removed all unused Symbols, Graphic Styles, Brushes and Swatches from your Illustrator files. Those little items add up to bloating a file.
    You also need to examine the images that you place into your Illustrator file. Any unnecessary layers or channels? Can the files be flattened before being placed in Illustrator? You can always keep a "working" Photoshop file of all that extra goobledeegook and then flatten the file and do a "Save As" and place that in the Illustrator file. And that could be a Photoshop EPS saved with a TIFF Preview and JPEG Encoding (Maximum Quality), which will save some MBs.
    But, you should never sacrifice file size for quality. If these files are going to print, you should be using an FTP program to transfer the files and not email them. Email should not be used for files over 5 MB. If all you want to do is send the customer a Low Resolution PDF Proof for approval via Email, that's fine and dandy, but send the final large size files to the Printer via FTP.

  • "Could not complete the Video Frames to Layers command because the movie file could not be opened."

    I'm using Photoshop CS5 extended.
    I've been using that to make gifs. It was fine when I import video frams into layers with the video formats of .mov or .avi. But After I installed OSX 10.6.8, this message comes up everytime I want to import videos: "Could not complete the Video Frames to Layers command because the movie file could not be opened."
    So I installed my old OS back which is 10.6.3 but the problem is still there.
    May I know what to do to solve this problem because all along I've been fine with making gifs and importing videos until now.
    Please help, thank you.

    Adnicej- wrote:
     ...I've been using that to make gifs...
    The computer deities may be trying to say something to you.  GIF is not a video format.
    Are you opening video with the same codec that was successfully opened before?

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • How to schedule the Batch file to run from task scheduler

    Hello Everyone,
    I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers,  i.e if the wscript.exe process count in task
    manager reaches to 30,  the task schedular should execute this batch file,
    Is there a way to do so.
    dibu

    Hi,
    àI need to schedule
    this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers.
    As I know, it will not help you to achieve this target via Scheduled Task. When configure Scheduled Task, there
    seems no Trigger option that help you specify this condition (process counts reaches to specific numbers) to trigger the batch file.
    You could consider that improve this batch file. Adding the
    Check function to the script will be a better option. For script issue, you can post it in the
    Official Scripting Guys Forum. I believe we will get a better assistance there.
    If any update, please feel free to let me know.
    Best regards,
    Justin Gu

  • 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

  • How can  i know the location of rmiregistry throught the batch file ????!!!

    i would make a batch file that launch my java application wich uses RMIREGISTRY, is there a way to know the path where is located the "rmiregistry file" -if it exists- in the client machine throught the batch file in order to start it befor to launching the application.?

    Yes, ask the person who was responsible for making the RMI registry run.

  • Execution of a batch file fails if the batch file has a date

    Hi All,
    I have a batch file which copies files from one folder to another based on the date condition( if the files are modified or created today copy them). Below is my code
    set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d:%curr_date%
    This batch file runs fine if i run it manually, but i want to run this in an ssis package, i am using an execute process task and in the executable i gave the location of this batch file, and if i run the package it fails.However if i just exclude the last
    date thing from the batch file and run the below one it runs fine.
    set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d
    But this batch file would copy all the files which i dont need. I only want to copy the new files and thats the reason i use the date in the end but for some reason it fails.
    Can someone please help me with any suggestions on this?
    Please let me know if you have any questions or if i am still unclear.
    Thanks

    What is the error you are getting?
    Why don't you want to use the FileSystem task that is parameter driven?
    Running the bat file manually vs as a package has a difference.
    Do you run it while the package is in development (via SSDT)?
    You only gave the bat file, but how did you set your task in SSIS not.
    Arthur
    MyBlog
    Twitter

  • How do I write a command in a .batch file written in NOTEPAD to run a powershell command?

    How do I write a command in a .batch file written in NOTEPAD to run a powershell command?
    Example:
    powershell -Command "& {Update-Help;}"
    would this be a correct command to put in a .batch file to update help information in powershell.
    All I want to know is how to write a windows powershell command in a .batch file.
    Multi-Commands
    Single-Commands
    Charles Wright

    Hi,
    You can separate multiple commands with a semicolon (;).
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Remote start the batch file

    Hi,
    Most of the times i have to kick off a batch file to change the accounts under which SQL agent runs. For this i need to RDP the server itself and run the batch file from the CMD.
    I understand that, i can create a schedule.bat file to earlier time and just kick off that schedule bat file manually from the local system through CMD to run the intended batch file on the destination server. So, i wont need to RDP the server itself.
    Do i make sense? Can you help me on it?
    Thanks

    Hello,
    Your question is really not "SQL Server XML" related, the topic of this forum.
    I don't understand why you have to change frequently the SQL Server Agent Service account? You could use Proxy account for the different Jobs instead.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • DOS Window automaticly close after execute the batch file and start the App

    Hi, all. I have made a batch file. When I start the batch file, thet is getting open the DOS Window. But I want close the DOS Window after Start the Application, or make it hidden?
    It is possible?
    Thanks all:-)
    Nikolay

    Hi,my batch file is:
    java -cp File.jar Desktop
    I have tryaed with:
    javaw -cp File.jar Desktop , but it dosn�t close the DOS Window.
    Have I make anythink false?
    Thanks.
    Nikolay

  • How/where can you change the delimiters within the output file -Urgent Pls!

    Hello Experts,
    When Exporting data through EAS, how/where can you change the delimiters within the output file (ie. space delimited vs tab delimited vs custom)
    Thanks in advance.
    Regards,
    Sonu

    This is where I will be shot down in flames but at least in 7.x I am unaware of any configuration option that allows you to export in anything other than space delimited.
    I guess you could write a shell/perl script that could change this outside of Essbase
    Edited by: DrFosterMan on Jan 16, 2009 12:54 PM

Maybe you are looking for

  • IPod seems to have forgotten my Wi-Fi network!

    Well, here's the problem. I was in Settings and accidentally selected 'Forget this Network' for my home Wi-Fi network. Not to worry, I thought, as I'd accidentally done the same before, and connected to my network again, entering the password as I we

  • How do I batch unlock/decrypt PDFs in Acrobat XI?

    I've been trying to implement an action in the Action Wizard to batch remove the security on multiple PDFs.  I came across this post and have been trying to implement the steps it describes: http://answers.acrobatusers.com/ViewQuestion.aspx?questioni

  • Converting .rpt file code into Perl code

    Hi All, I have some .rpt file which contains the following code to generate the report in Oracle .declare booking_no a13 .declare line_code a10 .declare line_booking a12 .declare book_date a11 .declare taken_by a10 .declare ud a10 .declare ship_name

  • Imaq histograph error

    I used IMAQ Histograph VI in this vi. The image source is set as a grayscale I16 image. When it is running on the machine it works OK, but when I run it on my own computer, it shows an image type error for IMAQ Histograph. I read the help file, the m

  • Create slideshow from cd

    How do I transfer photos from a CD and create a slideshow in Iphoto?