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
Similar Messages
-
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 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.
ArifAs 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 -
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 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 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] -
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 (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 -
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 -
How to run a class file from windows ?
hi, i have created a shorcut to run my java application from my windows desktop, but i have the error message "Couldn't find the main class, programm will exit",
the shortcut is as follow
[%windir%\System32\javaw.exe C:\ProgramFiles\\Main]
thanks for you help,Im new to running java from a shortcut but this may help. I hope this helps.
this is the command you ned to write and refer to my example;
javaw.exe -cp <path to class file> packageName.className
This is an example of wat i have typed to run my program from a shortcut;
C:\JBuilder3\java\bin\javaw.exe -cp C:\jbuilder3\myclasses\welcome.jar welcome.welcome
Hope this helps
good luck!!!
Matx3001 -
I can't open batch files in windows 8.1
I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to. Since the file does run but closes fast, i thought of adding
pause. Adding pause did not fix the problem. I am not sure if i have to change my keys on regedit, or i have some kind of malicious software that needs to be fixed ( I think i have no malicious software, i have run security scan many times
nothing showed up, I had a Trojan horse, Trojan.Gen2, long time ago but the Trojan got quarantined?) I originally had windows 8 but upgraded to windows 8.1.
Help Please! I don't Know what to do!!!Hi Glogikon,
"I am trying to run a batch file in windows 8.1, when i run the batch file runs at first but closes so fast that you can't see its contents, you can't even see if its doing what you tell it to."
According to my experience ,it is a normal symptom .Did the bat file run well before ?
Have you tried to run the command one by one in the bat file from a command line ?Have you tried to run the other bat files which including a output to have a check ?
If it is possible ,please post the command of the bat file here .We will make a test for you .
To check whether the bat run well ,this link may be useful:
check if command was successfull in a batch file
http://stackoverflow.com/questions/14691494/check-if-command-was-successfull-in-a-batch-file
" I think i have no malicious software, i have run security scan many times nothing showed up,"
We can try to work with the following official free tool to have a check .It is recommended to run it in a safe mode to improve the quality of the scanning.
Malicious Software Removal Tool
http://www.microsoft.com/security/pc-security/malware-removal.aspx
NOTE: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites.
Best regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
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
Maybe you are looking for
-
HT201322 How do I hide an app purchase in my App Store? Please help!
I need to hide apps that were purchased in my App Store. Apple.com says you can swipe over the unwanted app and hide purchase. I'm not able to do this on my ipad 2 with OS 6. Has anyone found a workaround? ,use do from ipad or iPhone... I don't have
-
My 2gb N81 was working fine, but for some reason I now cannot view any pictures or videos in the gallery. The message I get is: "No images or vidoes" I did not install or update any software immediately prior to the problem. Using the file manager, t
-
In imove one of the video I taken is in oct 2010 and I taken it on april of 2013
In imove one of the video I taken is in oct 2010 and I taken it on april of 2013. How can I move it to april 2013?
-
NCL2 SP2 - Possible bug with numerical server names?
Hi there, We have a NetWare server called 007 (i.e James Bond) and when trying to map a drive or browse it (i.e. once authenticated to eDir) we get the error in the screen shot attached.. Also, when trying to map using server IP address, drive letter
-
How can i view Service outage/fault problems with ...
I have been driving my self nuts going around and around the BT site trying to find a link to Service outage/fault problems with Broadband in my area. Any ideas!!! Mike Solved! Go to Solution.