How to run a batch file clicking a button?
Hi All,
Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
Arif
As said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
cheers
Similar Messages
-
How to run a batch file as windows Nt service
Hi friends
I want to know how to run a batch file as windows NT service.
I got some information in the following link
http://support.microsoft.com/kb/q243486/
I tried it but i want to know what we need to include in Autoexnt.bat
And one thing i need Instexnt.exe file. I cannot find tht file.
Please search tht file and send me tht file or else send the link in which this file is present
Please give me reply fast.its very urgent.
Thanks in advance.Hi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi,
How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
Oracle Version: 10g 2.0.1.0.
Thanks in advance
RizlyHi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
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 -
How to run a batch file using tigger....
Hi, i am trying run a batch file using a trigger on a table.
say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
the values of col_2 keeps changing and col_1 are constant
whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
i did some searching but couldn't find any solution. Thanks in advance
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
sorry wrong foum to post.
will post in the correct one
how to run batch file using trigger?Hallo,
welcome to the forum.
This is the forum for the tool {forum:id=260}. Your question should be placed in {forum:id=75} or {forum:id=61}.
When you post your question there please provide additional information like db version, what kind of trigger you want to use, how you want to prevent the execution when the transaction is rolled back... {message:id=9360002}
Regards
Marcus -
How to run a batch file in a continous loop
Hi. PS noob. I need to run a batch file frequently -- possibly every one minute. Correct me if I'm wrong, but Task Scheduler can only schedule a task to run as frequently as every 5 minutes. What would a PS script look like that would
run a batch file, sleep for a minute or two, then loop? Thanks.Hi District,
I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
If you have any feedback on our support, please click here.
Best Regards,
Anna
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
How to run a batch file using java
Hi guys,
I want to run a batch file by running a java program.
i have tried for this code, but it is not working , plz guide me code.
Runtime r = Runtime.getRuntime();
Process p = null;
try
String[] cmd ={"cmd","/c","C:\\jarkarta-tomcat-3.2.3\\webapps\\DDS\\Resumes\\leap.bat"};
p = r.exec(cmd);
catch(Exception e)
System.out.println("Exception in Runtime batch processing."+e);
}You will need this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html -
How to run a batch file from within an Oracle 9i Form?
Hi, I would like to execute a batch file from within an oracle form - I'm assuming there's some PLSQL command I can use? I am not allowed to use any third party libraries, and I'm hoping I can get away without having to progam any C or Java to do it. I don't want to run my java program from my form, but my lecturer is insisting on it.
Can anyone help?
Thanx
AdamCan u give me an example
I need to run a batch files that does a series of step doing dir ( in 3 different folders)
after each one it shows on screen with a pause & user press enter
can this work out ? -
How to run a batch file (sounds easy...)?
Hallo,
I just tried a lot of things to run through a simple button a prepared Batch-File. I used the execute-command but it does not work proper. There is an error message.
Hope it is easy to solve. How can I execute / run / start an batch file, because just to execute it through the execute-command does not work?
Thx for help
[email protected]Hey!
Try this VI (LV 6.0 and 7.1 versions included). I use it pretty much for everything. Will launch .bat and .exe, will also open most files types, like .pdf, .doc, .jpg, etc., in their respective default applications.
Good luck!
Zador
Attachments:
launch application.zip 16 KB -
I need to execute a batch file on the clients pc. Right now, I'm using:
WEBUTIL_HOST.NonBlocking('cmd.exe /c "' || :Test.Batch_File_Name || '"');
where the :Test.Batch_File_Name is something like C:\run.bat.
This works to some extent. When it runs, I see a blank cmd.exe window and when I check my processes, I can see that run.bat is running. However, I need to be able to see run.bat as it executes because it outputs messages to the screen. Is there a way to call client_host or webutil_host that will display the batch file screen?
ThanksHello,
With the Webutil Get_Standard_Output() , you can get the output strings and display them into your own Forms canvas ;o)
Francois -
HOW to run a batch file in DOS 6.22???
I have written a batch file that runs fine under Windows Command Prompt, but I would like to be able to run it after POST in DOS. I have copied my code to AUTOEXEC.BAT file which gets executed automatically; however it comes up with syntax errors
once it reaches the call command 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 YouCall is used to execute another batch file external to the one your in, you can only call a label if the command extensions are enabled.
http://www.computerhope.com/call.htm
Since you are not passing any parameters into :myPOSTTest you might just be able to use GOTO instead. -
How to run a batch file using DAC
Gurus,
Please suggest if there is a way to run .bat files using DAC ? I suppose it can be done by configuring Execution Type as External Program. Please suggest how can this be achieved.
ThanksI performed the same steps given in the link and ran the ex plan, but the task shows running and never completes. In my case i have created bat file for a different purpose (not for purging cache).
Is the path shown in Step 5 the default path or it can be any path ? Please suggest.
Thanks -
Running a batch file in a java servlets programme
this is what i have
Process p = Runtime.getRuntime().exec("C:\\sync.bat");
Now i need a way for the program to wait until this is finished running. I dont want to print anything until this is done. Is there a way to do thisWill this even run sync.bat or do i have to do more.Here is my entire code
import java.io.*;
import java.io.File;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.swing.*;
public class index_test extends HttpServlet
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<HTML>");
out.println("<body>");
try
Process p = Runtime.getRuntime().exec("C:\\sync.bat");
String dir = "C:\\Perforce";
File what = new File(dir);
String [] listy = new String [100];
String [] products = new String[5];
String lists;
listy = what.list();
out.println("<form action =getBuilds Method = get>");
out.println("Please select which Product you wish to search in: ");
out.println("<br>");
int j = 0;
if(listy[j] != null)
products[j] = listy[j];
j++;
int i =0;
for(i = 0; i<listy.length && listy[i] !=null;i++)
out.println("<input type ='radio' name = 'product' value='"+dir+"\\"+products[i]+"\\build'>");
out.println(products);
out.println("<br>");
out.println("<input type ='submit' value ='Submit'>");
out.println("<br>");
catch(IOException e){}
out.println("<img src='C:\\tomcat4\\webapps\\Tracker\\dancing2.gif'>");
out.println("</form></body></html>");
What i need is to run sync.bat, wait till its finished then print out the folders in the Perforce directory. I can print out the contents of Perforce grand i just dont know how to run the batch file and get the progeam to wwait until its finished -
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 advanceFirst 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. -
Running a batch file : URGENT
I want to run a batch file on click of a button. Please inform if it is possible and if yes then how.
yes it's possible.
look at Runtime.exec() in java documentation. If you can't figure it out, try posting in New To Java Technology Forum
Maybe you are looking for
-
Upload data from Excel to Itab
Dear All, Suppose I have data in the form of a matrix and I need to upload the data into the database after validation. The excel sheet is of the format: Emp Empdept E1 E2 E3 E4 E5 E6 E7 E8 E9 E1 MEC 0
-
The new ITunes software for Windows, ITunes vers. 11.0.1.12, is extemely clumsy for managing my IPhone 4. The help material is designed for the older version so is of no use. The interface is extremely difficult to use except for buying music or vi
-
How to set the prompt of a Spark Combobox programmatically
Hi, here a Combobox wich use my cutom Skin to manaully set the prompt: <s:ComboBox id='artistNameCB' labelField="artistName" skinClass="view.music.skins.ArtistComboBoxSkin" /> here is
-
SAP Positive Pay daily transmission and re-transmission.
Our company is implementing SAP. Positive Pay transmission is one of many interfaces we have to rewrite. Currently we use JD Edwards and we transmit payments multiple times per day. The data selection is based on the transmitted flag = u201CBlanku201
-
File...Export Movie
Want to use this option to export and TGA image sequence, but the File....Export Movie optiion can not be selected. What am I missing here?