Trang Chủ | Diễn Đàn | Thành Viên (Đăng Ký) | Tìm Kiếm | Tutorial Room
Delphi - Truy xuất file Exe để chạy???
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
Truy xuất file Exe để chạy???
Member
Member since
21:58 01-10-2009
Posts: 2
Fantasy Points: 7
Rank
question Posted at 22:27 01-10-2009 Move Move Topic   Pin/Unpin Pin Topic   Lock Lock Topic
Chào các bạn, mình có 1 vấn đề cần thắc mắc như sau:
-Mình muốn truy xuất tới 1 file exe để chạy. Ví dụ là đường dẫn như thế này: \\test\soft\unikey.exee (có username: test, pass: test)
-Giờ mình tạo 1 Button(Caption: Install) và 1 nút RadioButton(Caption: Unikey), làm thế nào khi mình bấm vào RadioButton(Caption: Unikey) rồi bấm Button(Caption: Install) thì chương trình sẽ tự truy xuất tới \test\soft\unikey.exe (có username: test, pass: test)
Ai biết hướng dẫn mình với. Cám ơnn
This post has been edited 1 time(s). Last edited by Admin on 23:16 01-10-2009.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,540 time(s). 1 direct repli(es) and 1 indirect repli(es).
Title Poster
question Truy xuất file Exe để chạy???
 
answer Re: Truy xuất file Exe để chạy???
NBThanh
Re: Truy xuất file Exe để chạy???
Forum Moderator
Member since
20:03 17-08-2001
Posts: 18,047
Fantasy Points: 154,606
Rank
answer Posted at 23:20 01-10-2009
Reply to Truy xuất file Exe để chạy??? (zhuoheng)
Tôi không biết Delphi có sẵn component nào không, nhưng trong trường hợp này bạn cần phải xử lý 2 bước:
- Mở 1 network resource (cụ thể ở đây là thư mục \test\soft\ và file \test\soft\unikey.exe) với username và password
- Chạy 1 chương trình exe từ Delphi.

Bạn có thể thử chạy chương trình trước (tham khảo: http://delphi.about.com...api/a/executeprogram.htm). Nếu...hên thì Delphi sẽ xử lý luôn phần 1 cho bạn, miễn là bạn chỉ đúng đường dẫn. Còn nếu không thì bạn tham khảo thêm http://www.experts-exch...l/Delphi/Q_21227186.htmlml
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,538 time(s). 1 direct repli(es) and 0 indirect repli(es).
Title Poster
answer Re: Truy xuất file Exe để chạy???
 
answer Re: Truy xuất file Exe để chạy???
zhuoheng
Re: Truy xuất file Exe để chạy???
Member
Member since
21:58 01-10-2009
Posts: 2
Fantasy Points: 7
Rank
answer Posted at 00:13 02-10-2009
Reply to Re: Truy xuất file Exe để chạy??? (NBThanh)
nbthanh:
Tôi không biết Delphi có sẵn component nào không, nhưng trong trường hợp này bạn cần phải xử lý 2 bước:
- Mở 1 network resource (cụ thể ở đây là thư mục \test\soft\ và file \test\soft\unikey.exe) với username và password
- Chạy 1 chương trình exe từ Delphi.

Bạn có thể thử chạy chương trình trước (tham khảo: http://delphi.about.com...api/a/executeprogram.htm). Nếu...hên thì Delphi sẽ xử lý luôn phần 1 cho bạn, miễn là bạn chỉ đúng đường dẫn. Còn nếu không thì bạn tham khảo thêm http://www.experts-exch...l/Delphi/Q_21227186.htmlml

Cách này chỉ áp dụng cho local(máy đơn xài)mình đã test chạy OK, còn mình muốn áp dụng ở môi trường network (có username và password), bạn có thể chỉ mình môi trường đó ko? Thanks bạn nhiều lắm.
Reply Reply   Quote Quote   Edit Edit   Delete Delete   Report Report
This post has been viewed 1,533 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.144s - SQL used 6s - Concurrent process(es) 0