Solved

open local files

Posted on 2009-04-03
5
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

717 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