التنبيهات التالية ظهرت :
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 864 errorHandler->error



تقييم الموضوع :
  • 0 أصوات - بمعدل 0
  • 1
  • 2
  • 3
  • 4
  • 5
معرفة مسار البرنامج واسم التطبيق في ASP.net
#1
كاتب الموضوع : AhmedEssawy


كود :
Option Explicit
Option Strict
Imports System
Imports System.IO
Class ThisApp
Private mAppPath As String
Private mExeName As String
Public ReadOnly Property AppPath() As String
Get
Return mAppPath
End Get
End Property
Public ReadOnly Property ExeName() As String
Get
Return mExeName
End Get
End Property
Public Sub New()
Dim p As Path
Try
mAppPath = System.Reflection.Assembly.GetExecutingAssembly.Location
mExeName = Dir(mAppPath)
mAppPath = p.GetFullPath((Left(mAppPath, (Len(mAppPath) - Len(mExeName)))))
Catch
MsgBox(Err.Description, MsgBoxStyle.Critical, "Error!")
End Try
End Sub
End Class
Module modMain
Sub Main()
Dim MyApp As ThisApp = New ThisApp()
MsgBox(MyApp.AppPath, MsgBoxStyle.Information, "App Path")
MsgBox(MyApp.ExeName, MsgBoxStyle.Information, "Exe Name")
End Sub
End Module
}}}
تم الشكر بواسطة:


الردود في هذا الموضوع
معرفة مسار البرنامج واسم التطبيق في ASP.net - بواسطة Raggi Tech - 17-10-12, 10:51 PM

المواضيع المحتمل أن تكون متشابهة .
الموضوع : الكاتب الردود : المشاهدات : آخر رد
  معرفة مكتبات البريد الإلكتروني التي يمكن استخدامها في السيرفر - Asp RaggiTech 0 2,065 17-10-12, 10:51 PM
آخر رد: RaggiTech
  معرفة طول الملف Asp RaggiTech 0 2,121 17-10-12, 10:50 PM
آخر رد: RaggiTech
  معرفة ال Ip للمستخدم من خلال Asp RaggiTech 0 2,022 17-10-12, 10:49 PM
آخر رد: RaggiTech
  كيفية معرفة الصفحة السابقة المحدثة Asp RaggiTech 0 1,992 17-10-12, 10:47 PM
آخر رد: RaggiTech

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم