Welcome, Guest. Please login or register.

Author Topic: Make Lock() look for path..?  (Read 4622 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DariusB

  • Newbie
  • *
  • Join Date: Jun 2005
  • Posts: 8
    • Show all replies
    • http://people.freenet.de/dariusb/
Re: RunCommand path problem... also path parsing..
« on: June 20, 2005, 11:23:43 PM »
Not sure, but what´s about PathPart(), or FilePart();

PathPart() will return a pointer to the end of the given path excluding the commandname.

FilePart() will return a pointer to the beginning of the command.

You can copy all caracters between the beginning of the path/commandname upto PathPart(path), adding a ZERO using Lock() and CurentDir() on it and call RunCommand(FilePart(path))