ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

پیدا کردن مسیر فایل اجرایی

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET
View previous topic :: View next topic  
Author Message
paul
مهمون يكي دو روزه


Joined: 14 May 2005
Posts: 9

PostPosted: Mon May 30, 2005 8:14 am    Post subject: پیدا کردن مسیر فایل اجرایی Reply with quote

برای این کار لازم است تنها کد زیر را در formload بنویسید:



a=curdir
me.caption=a

سپس مسیر ی را که فایل exe در آن قرار دارد را می اندازد
Back to top
unknown
مدير بخش ويژوال بيسيك
مدير بخش ويژوال بيسيك


Joined: 05 Dec 2004
Posts: 439
Location: Tehran

PostPosted: Mon May 30, 2005 5:18 pm    Post subject: Reply with quote

یه راه راحت دیگه استفاده از تابع App می باشد
App.path

Me.Caption = App.Path & "\" & App.EXEName
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum