Solved

open local files

Posted on 2009-04-03
5
175 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

742 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