Solved

Removing path from filename

Posted on 1998-03-26
1
122 Views
Last Modified: 2010-04-06
Hi,
   In my app I run an external program which takes the name of the current document as a parameter. Is there an easy way to remove all the path information ie. c:\prodelph\doc.tex should be given as doc.tex?
Cheers.
0
Comment
Question by:PiersBull
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 10 total points
ID: 1360887
Hi PiersBull

use the ExtractFileName function (unit SysUtils), i.e.

ExtractFileName('c:\windows\myfile.ext') returns 'myfile.ext'

hope this help

rene100
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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