
03-28-2005, 01:43 PM
|
|
Newcomer
|
|
Join Date: Dec 2004
Posts: 16
|
|
Using a textfile for a Shell
|
Hi, I'm making a program for people who don't know the programs built in with Windows. It has buttons for Notepad, Explorer, Paint and such. The a problem I had is that Shell ("iexplore.exe") didn't work, although Shell ("notepad.exe") did. I fixed that (partially) by using Environ$("ProgramFiles") + "\Internet Explorer\iexplore.exe" and dumping the location into a textbox. I was able to save the textbox into Config/ie.txt (without quotes) and now my question is, is there a way to run a file from a .txt file? Definately not this, but something like Shell (Config/ie.txt), or maybe having a hidden textbox that first loads the file, and then lets you do the shell thing. Any ideas?
Edit: I just re-read it and "save the textbox into Config/ie.txt (without quotes)" didn't seem to make sense. What I mean is that I made it save the text into Config/ie.txt, without the quotes around the location, because I know quotes around a saved .txt file is a common problem.
|
Last edited by bobp; 03-28-2005 at 11:05 PM.
|