Solved

open local files

Posted on 2009-04-03
5
171 Views
Last Modified: 2012-05-06
I had some batch files and some txt files in my computer....

Instead of going to those folders and opening them I need to open them or
click the batch files from a php form....

I mean I want to open an input.txt ...so that i will paste some input in it...
then I must link the batch files...

this i can do it manually but can I get an frontend where i can open the input file by clicking on link...
and use  batch file by clicking on another link..

is these things done by php..
0
Comment
Question by:shragi
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
garlix earned 500 total points
ID: 24063090
Sure you can.

Exec and System can be used to execute external programs. Exec runs a file, System runs a file and displays the output ofthe file.

Editing a batch file is quite easy too. You read it, display it in a textbox with a save-type button. Or somesuch :-)

If PHP is the most suitable for this, I do not know. You could look up PHP-cli and PHP-gtk to make a desktop application running PHP.
0
 
LVL 3

Expert Comment

by:garlix
ID: 24066017
Not exactly sure what you mean by "no proper support from members".

It's great that you solved your problems yourself! :-)
But to say noone tries is a bit unfair in my humble opinion.

Without any feedback it's a bit hard to know what you expected!
0
 

Author Comment

by:shragi
ID: 24066575
sorry quarlix.... it was my mistake...actually it was for the HTML question I typed that msg...but I pasted here... and ur sure...I cannot tell that no proper support from members...becoz... it was not even 24 hrs ...that I posted the question...

I am again saying that word SORRY
0
 
LVL 3

Expert Comment

by:garlix
ID: 24066631
Ah, Ok!

No worries. I just got a bit confused about your comment is all.

Did you get this problem solved then?
0
 

Author Comment

by:shragi
ID: 24069404
ya i got it myself...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now