I want to execute a html file named hai.html in c:\mydocuments folder.
How can i open this file in Internet explorer or netscape?
thank you in advance ,
vishnu 2 9626
As to run dos commands you can simply write:
Process p = Runtime.getRunt ime().exec("<<c ommand>>");
As to view an html file in IExplorer or Netscape I think you can
just write "filename.h tml" in the exec String parameter because
the System under the VM automatically find the best program to
execute that file extension. So if IE is the "default browser" IE
will be opened; if Netscape do, Netscape will be opened.
Anyway "nomefile.h tml" will be shown!
Regards.
Luca Paganelli
"vishnu mahendra" <vi************ *@yahoo.com> wrote in message
news:c2******** *************** **@posting.goog le.com... I want to execute a html file named hai.html in c:\mydocuments folder. How can i open this file in Internet explorer or netscape?
thank you in advance , vishnu
On 1/18/04 2:41 AM, in article 0r************* ******@tornado. fastwebnet.it,
"Luca Paganelli" <as*@me.it> wrote: As to run dos commands you can simply write:
Process p = Runtime.getRunt ime().exec("<<c ommand>>");
With regards to opening a document on a Windows platform, it is better to
use the "start" command, and pass the html file as an argument. Like:
Process p = Runtime.getRunt ime().exec("sta rt myfile.html");
Off hand, I'm not sure if you need to pass the whole path to start or not.
You could probably also use the environment variables in the string, like
%SYSTEM_ROOT%, if I remember correctly.
Anthony
--
Got a blog? Post it: http://www.martin-studio.com/weblog-index/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Will Seay |
last post by:
At the end of this message I've pasted a script we're trying to modify
slightly. I don't believe it is VBscript or javascript but these are
the closest groups I could find with my limited programming knowledge.
Basically, we are trying to add a few lines to this script that will
execute a few shell commands (see comments at the very end of the
code). We think this may be ActionScript2 but aren't sure.
If you can offer any help, or know...
|
by: Brian Roberts |
last post by:
I have a command line Python program that sometimes takes a bit
(several minutes) to run. I want to provide an optional method for an
impatient user (me!) to check the status of the program. The type and
amount of status information doesn't fit nicely into a --verbose or
logger -- either too little or too much information at different
points.
I think an optional web page would be convenient interface. The
Python program would listen...
|
by: stealthwang |
last post by:
I'm still very new to Python, after decideding to learn a true
programming language (rather then a scripting language, i like to think
i'm a intermediate PHP user). I decided for my first project I would
try to make a IRCbot. It would run on the commandline with a frontend
for commands such as "reconnect", "quit", "changeserver", etc. My
problem is while I have the bot to a state where it connects to the
server (with the use of IRCLib), I...
|
by: Paul Cochrane |
last post by:
Hi all,
I've got an application that I'm writing that autogenerates python code
which I then execute with exec(). I know that this is not the best way to
run things, and I'm not 100% sure as to what I really should do. I've had a
look through Programming Python and the Python Cookbook, which have given me
ideas, but nothing has gelled yet, so I thought I'd put the question to the
community. But first, let me be a little more detailed...
|
by: kapsi |
last post by:
Hey all,
I was just wondering as to how to implement dos commands and windows
commands using the C language?
any ideas?
| |
by: Mr Bounce |
last post by:
Hi,
Probably well worn ground, this, but im stumped and need some help, if
you could:
I'm trying to write some code for a windows service that needs to run
in the background polling a server for commands. Certain commands
require the service to interact with the application running on the
active desktop, currently just to either shut it down or start it.
|
by: Franck Diastein |
last post by:
Hi,
I'm designing an application, and I would like to be able to receive
external commands... I would like a behavior like eMule, when you click
on an ed2k link, the link is added to eMule, even if this app is running...
How can I handle this behavior in my app ?
TIA
|
by: miago |
last post by:
Searching this forum I found an example of running Unix commands from Python;I wonder if there is a way to get the output of windows commands on a string using Python.Thanks in advance;
Miago.
|
by: Mike |
last post by:
I'm having trouble running TSQL commands when SQL2005 is in single-
user mode.
I've restarted SQL with -m, -c, -T3608 set in the startup options.
I can get into Config manager OK, but as soon as I try to start a New
Query it complains that the DB is in single-user mode and there's
already someone connected to the DB.
Is there something I need to turn off? If not, how am I supposed to
|
by: SPJ |
last post by:
Is it possible to run specific commands on cisco router using Python?
I have to run command "show access-list" on few hundred cisco routers and get the dump into a file. Please let me know if it is feasible and the best way to achieve this.
Thanks,
SPJ
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |