Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions run a batch file through javascript
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


marutham
run a batch file through javascript
1 Answer(s)      3 years ago
Posted in : JavaScript Questions


How to run a batch file through javascript without prompting?


Advertisement
View Answers

September 14, 2011 at 5:14 PM


<html>
<head>
<script type="text/javascript">
function runApp(st) {
  WshShell = new ActiveXObject("WScript.Shell");
  WshShell.Run (st,1,false);
}
</script>
</head>
<body>
<!-- Two ways to create a link to run the app. -->
<font onClick="runApp('file://c:/winnt/notepad.exe');" style="cursor: hand;"><u>Notepad</u></font>
<br>
<!-- Or use <a> descriptor -->
<a href="runApp('file://c:/test.bat');">Batch File</a>
</body>
</html>


Related Tutorials/Questions & Answers:
run a batch file through javascript
run a batch file through javascript   How to run a batch file through javascript without prompting
Batch file for java application
Batch file for java application  please tell me how to create the batch file for java application(using swings).the application is created with netbeans
Advertisements
Take input in batch file
Take input in batch file  How to take input in batch file? Thanks   Hi, You can use the following line of code in your batch file: set /p myfile=Enter file name: In the above code myfile variable will hold the data
Time schedular for multiple batch file execution in java
Time schedular for multiple batch file execution in java  Hello All, i have a task in which i have to design a time schedular in java in which i can automate the batch file execution for the wholw day. For example i should have
Run XML file
Run XML file  Hi.. How do I execute or run an XML file? please tell me about that Thanks
run jsp file
run jsp file  how to run the jsp file in varies web servers   Hi Friend, For Apache Tomcat,there is a basic directory structure: webapps.... The jsp file is to be saved into the web application folder.Let the file
Running a stand alone application using batch file in windows
Running a stand alone application using batch file in windows  I have created a stand alone application and i have generated jar file for my... following command to run my application java -classpath ".\filecreate.jar
batch in jdbc
JDBC BATCH PROCESSING    In Batch processing, many queries work together as batch. The following program include collective set of SQL queries... is used to run all queries altogether. sqlbatch.java import 
how to run a .exe file in jsp
how to run a .exe file in jsp  i want code for to run a .exe file in jsp
executing a batch file which depends on jar files from a system tray but console should not display.
executing a batch file which depends on jar files from a system tray but console should not display.  Hi all, I got following requirement, I have to run a batch file which is depending on some jar files and it displays a frame
JavaScript loop through
JavaScript loop through     ... in understanding JavaScript loop through. We are using Java Script language as scripting language. The for loop execute and run the script till variable i 
Locale Specific Date validations through JavaScript/Ajax...
Locale Specific Date validations through JavaScript/Ajax...  Hi, I....), how to manipulate date validations through JavaScript or Ajax? Thanks in Advance, Sreenivasulu Arveti.   Hi, You can write normal JavaScript
not able to run in gcj file - JDBC
not able to run in gcj file   We have a java program in Linux environment, which hits DB for some data and encode the same. We need to compile... to run the java program it says that Classes12.Jar?s oracle Driver missing. We
JavaScript Open file
JavaScript Open file...; In this section, you will learn how to open and read the file in JavaScript. You can see in the given example, we have created a file component to let the user
To run a jsp file automatically - IDE Questions
To run a jsp file automatically  Hi all, I am in need for the solution for - Can a JSP page can be made to run automatically when NetBeans IDE has been started. or we have to compile and run it automatically? I
take variables in text file and run in java
take variables in text file and run in java  I have a text file which have variables 17 10 23 39 13 33 How to take "17"in java code
reading and displaying svg file through java
reading and displaying svg file through java  sample program for reading a svg file
File copy through intranet - Java Beginners
File copy through intranet  Can i copy files from system A to System B connected through intranet?? Is this possible through java IO? If yes, please let me know
Jsp error when i run this a jsp file
Jsp error when i run this a jsp file  hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22
JavaScript move file
JavaScript move file... the JavaScript method GetFile() with this object which returns the file...; In this section, we are going to move a file from one folder to another using
passing file parameter through ajax - Ajax
passing file parameter through ajax  I have file parameter in jsp file, i need to pass it to server side through ajax. how i can i do that.   Hi friend, file1.jsp passing file using jsp
read and write a file using javascript
read and write a file using javascript  How to read and write a file using javascript
read doc and docx file in javascript
read doc and docx file in javascript  How i read doc and docx file in javascript
iterate through map and write the content in a separate file
iterate through map and write the content in a separate file  I am trying to save the data from file to a map, then iterate through map and write... through the above file and save it in maps depending on if it is a concept
iterate through map and write the content in a separate file
iterate through map and write the content in a separate file  I am trying to save the data from file to a map, then iterate through map and write... through the above file and save it in maps depending on if it is a concept
iterate through map and write the content in a separate file
iterate through map and write the content in a separate file  I am trying to save the data from file to a map, then iterate through map and write... through the above file and save it in maps depending on if it is a concept
Large File reading through Axis2 Web service
Large File reading through Axis2 Web service  This is Vinay Rai. This is regarding the web service help which i am looking for. I am currently working on axis2 web service and i am very new to this. so need your help
How to design a batch, design a batch, a batch
How to design a batch       Learn how to make a batch for the member of the unity, you can make same design by this example. New File: Create a new document. Circle: Draw a circle
downloading file through a file's path stored in database in jsp
downloading file through a file's path stored in database in jsp  hi want to download a file from a directory where the file location is stored... table,but i dont know hoe to download the file using its path stored
javascript code for search in html file
javascript code for search in html file  Hi, I am looking for javascript code through which we can search data with specific name find in any rows in the table. Example: Id Name P001 A P002 B P003 C P004 P002 P005
Reading and querying an Excel file in JavaScript
Reading and querying an Excel file in JavaScript  Hi, I'm trying to read in an excel file, search a column for containing key words (entered... to JavaScript. Can anyone help ? Thanks
Advertisements
 

 

 

DMCA.com