-
Mar 10th, 2008, 12:44 PM
#1
Thread Starter
New Member
FireFox open batch file.
Hi guys:
This is my first thread here.
I wrote this script
Code:
<script type="text/javascript">
function PROCTest()
{
document.location.href = "/Start.bat"
}
</script>
and then from button I wrote
Code:
<input type=button onclick="PROCTest();">
But the problem that FireFox show the content of the batch file "Start.bat".
Can I make it execute it? -IE does that-
Regards
-
Mar 10th, 2008, 07:54 PM
#2
Re: FireFox open batch file.
This is a security vulnerability. You will find that if the page is not served from the local computer, the link will not work at all. Imagine a page that fired off exectables on the client machine when it was viewed.
A web browser is not the right tool for this task.
-
Mar 11th, 2008, 01:20 AM
#3
Thread Starter
New Member
Re: FireFox open batch file.
Originally Posted by penagate
A web browser is not the right tool for this task.
What can I do in this case?
Any suggestions to run batch file ..............
Regards
-
Mar 11th, 2008, 06:17 AM
#4
Re: FireFox open batch file.
The command line.
Explain a little more of your circumstances if you could. Perhaps we can help you to find a better solution.
-
Mar 11th, 2008, 09:45 AM
#5
Thread Starter
New Member
Re: FireFox open batch file.
Originally Posted by penagate
The command line.
Explain a little more of your circumstances if you could. Perhaps we can help you to find a better solution.
By command line .........!! It works ,but how?
I want to do this
SmartCodeStudio -p C:\Label.lbx -records="1" -num="10"
this command can be done in RUN or command line .
How can I do this in a web page?
-
Mar 11th, 2008, 06:54 PM
#6
Re: FireFox open batch file.
You can't. That's not what web pages are for.
Why do you want to do this using a web page?
-
Mar 12th, 2008, 02:57 AM
#7
Thread Starter
New Member
Re: FireFox open batch file.
I'm developing a web page on an intranet .......which contains the last command that prints something...........
Isn't it logical?
Any suggestions?
Last edited by abo_mahmoud; Mar 12th, 2008 at 03:02 AM.
-
Mar 12th, 2008, 05:19 AM
#8
Re: FireFox open batch file.
Originally Posted by abo_mahmoud
Isn't it logical?
Not really.
Web pages don't print things. They're static. You can do a limited amount of manipulation of the web page itself on the client side by using JavaScript, but that's it.
Do your paper documents walk over to the photocopier and copy themselves? Of course not.
Don't expect a web page to be able to do anything more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|