Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

app.path and shell help

Status
Not open for further replies.

compcad

Programmer
Mar 22, 2002
52
0
0
US
i am trying to start a program from within an other program
and the code i am using is:

DataPath = Mid(App.Path, 1, 17) & "rafflemaker\TB - LITE\TB - LITE.EXE"
DataPath1a = Right(DataPath, 14)
retval = Shell(DataPath1a, 1)

the path to the main program is:

c:\program files\rafflemaker\tb-lite\tb-lite.exe

the program that starts the main program has a path as such:

c:\program files\rafflemaker\start\start.exe

THANK YOU
stephen mentzer
 
Hi,

What about something like this...

retval = Shell("..\tb-lite\tb-lite.exe")

Rob D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top