Nivedhitha Bhoopathi

Greenhorn
+ Follow
since Nov 06, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nivedhitha Bhoopathi

Hi Friends

I have created a website which has a set of links which on clicking directs to respective html pages which will display reports about server utilization.Now my requirement is to set a search option in my home page which has a text box and a search button.When i enter a word in the textbox and click the search button it needs to display the html pages path as links which is available under my root directory which contains the word.

I need the solution as soon as possible, Please help me out, thanks in advance

-Niv
Hi Bill,

I can't get what you are saying.What problem in using a Process?
14 years ago
Hi Friends,
I want to create a batch file through java program in one method and execute it in another method.
createBat()
{
File file=new File("C:\\samplenote.bat");
fos=new FileOutputStream(file);
dos=new DataOutputStream(fos);
dos.writeBytes("ECHO happy >> myBatch.txt");
dos.writeBytes("START note.txt");
}

executeBat()
{
String cmd="cmd /c start c:samplenote.bat";
Runtime r=Runtime.getRuntime();
Process pr=r.exec(cmd);
}



when i want to create a batch file with more than one command . all commands in the batch file is written in the same line.
like this
samplenote.bat
*************
ECHO happy >> myBatch.txtSTART note.txt



but i want like the below one

samplenote.bat
*************
ECHO happy >> myBatch.txt
START note.txt

what should i for that.
is there any command to write commands in batch file in consecutive lines
14 years ago
hi

ya ok... will try accordingly..and will get back to you all..
14 years ago
hai

Thanks for your responses...
Remote PC is windows operating system.
but i dont have java technology installed in that pc in which batch file resides.can you be more elloborate on your answer.
concept wise i know rmi...and did implemented sample programs also on it..but cant get a clear picture for this particular requirement(running a batch file on remote pc) when i relate with rmi.
thanks in advance

14 years ago

Nivedhitha Bhoopathi wrote:hi all,
I want to run a batch file which resides in a remote pc using a java program.I must specify login id and password in that java program itself and connect that machine in which batch file resides and run it.so that every time i run that batch file i need not provide login id and pwd of that remote pc.could some one help me out.

Thanks in advance

Nivi

14 years ago
hi all,
I want to run a batch file which resides in a remote pc using a java program.the thing is when i try to run it is asking login id and password for that remote pc(i have account to access that pc). I need to connect to the remote pc through a java program and run a batch file..so that ,i need not give login id and password every time i want to run that batch file...thanks in advance..
14 years ago