Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 21st, 2007, 05:42 AM
trebor678 trebor678 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Location: England
Posts: 98 trebor678 User rank is Private First Class (20 - 50 Reputation Level)trebor678 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 22 h 22 m 17 sec
Reputation Power: 2
Send a message via MSN to trebor678
Question Turbo Pascal App Path!?

Hey,

I know that there aren't that many posts on pascal, but I thought I'd ask just in case any one knows. I was wondering if anyone knew how to get the path of the exe that is running, I know that in VB6 you can use 'App.Path', and I've had a look on Google and other sites, but I haven't found anything (well, to be honest there isn't a lot about pascal that I can see!)

Thank You

Reply With Quote
  #2  
Old February 22nd, 2007, 10:11 AM
xnemesis64 xnemesis64 is offline
Google's No1 Supporter!
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2007
Location: irc.superirc.info
Posts: 569 xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level)xnemesis64 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 4 Days 15 h 48 m 12 sec
Reputation Power: 145
Send a message via MSN to xnemesis64 Send a message via Yahoo to xnemesis64 Send a message via Google Talk to xnemesis64 Send a message via Skype to xnemesis64
No, I think the closest you can get to this is too search the Disk Drive to find the file, and if multiple searches are returned check the file properties to decide which is the one you want.

Reply With Quote
  #3  
Old February 14th, 2008, 02:32 PM
GircysM GircysM is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 1 GircysM User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 27 sec
Reputation Power: 0
I know this thread is about a year old from now.
To anyone interested, the string returned from the function
Code:
ParamStr(0)
should return the exe path.

I found this out half by accident.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Turbo Pascal App Path!?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway