Trang Chủ | Diễn Đàn | Thành Viên (Đăng Ký) | Tìm Kiếm | Tutorial Room
Delphi - Lấy tên chương trình viết bằng Delphi
Hỏi đáp, trao đổi về lập trình Delphi.
Chú ý: Pascal/Delphi FAQs
First page Previous page  (Page 1 )   1   Next page Last page
Lấy tên chương trình viết bằng Delphi
Member
Member since
22:40 20-03-2009
Posts: 37
Fantasy Points: 128
Rank
question Posted at 09:22 16-02-2010 Move Move Topic   Pin/Unpin Pin Topic   Lock Lock Topic
Mình muốn lấy full path của chương trình đang chạy nhưng hình như trog SysUtils Unit ko có hàm đó. Vậy Làm cách nào để lấy path hoặc chỉ cần lấy tên của file exe đang chạy?
||
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 738 time(s). 1 direct repli(es) and 1 indirect repli(es).
Title Poster
question Lấy tên chương trình viết bằng Delphi
 
answer Re: Lấy tên chương trình viết bằng Delphi
ntan
Re: Lấy tên chương trình viết bằng Delphi
Member
Member since
22:40 20-03-2009
Posts: 37
Fantasy Points: 128
Rank
answer Posted at 09:42 16-02-2010
Reply to Lấy tên chương trình viết bằng Delphi (ntan)
Hix, sau khi post bài này. Search google chịu khó đọc tiếng Anh giờ em đã biết cách làm.
Application.ExeName function

Trang Delphi này hay phết.
http://www.martinstoeckli.ch/delphi/delphi.html

Admin xoá hộ em cái topic. (Chả nhẽ tự hỏi tự trả lời)
||
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 736 time(s). 1 direct repli(es) and 0 indirect repli(es).
Title Poster
answer Re: Lấy tên chương trình viết bằng Delphi
 
answer Re: Lấy tên chương trình viết bằng Delphi
invalidpassword
Re: Lấy tên chương trình viết bằng Delphi
Member
Member since
12:42 19-07-2006
Posts: 27
Fantasy Points: 92
answer Posted at 21:35 18-02-2010
Reply to Re: Lấy tên chương trình viết bằng Delphi (ntan)
Lấy tên chương trình đang chạy Application.ExeName
Lấy path : ExtractFilePath(Application.ExeName)
Lấy folder chứa chương trình đang chạy : ExtractFileDir(Application.ExeName)
Lấy phần mở rộng file ExtractFileExt(Application.ExeName)

Còn gì nữa không nhỉ ?
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 708 time(s). 0 direct repli(es) and 0 indirect repli(es).
First page Previous page  (Page 1 )   1   Next page Last page

Permissions: Create Topic: No  |  Reply Topic: No  |  Attach File: No  |  Make Poll: No

Vietnamese Keyboard: AUTO TELEX VNI VIQR VIQR* OFF

Go top || Print page ||

All logos, trademarks and graphics artwork in this site are property of their respective owners.
Opinions expressed in articles within this site are those of their owners and may not reflect the opinion of TXBB.

TXBB: Home - Disclaimer - Help - Contact
Copyright (C) 2000-2006 TXBB. All rights reserved.

TreXanh Bulletin Board v2.0 (Build: #332 Nov 21, 2006)

DEBUG INFORMATION
Execution 0.115s - SQL used 4s - Concurrent process(es) 0