logo VB.Net - Application Information
Guide Contents
DigitalDan Home Page

This page provides functions to extract information about the current program.
Get Command Line Arguments
Private Shared Function Get_Command_Line_Arguments() As List(Of String)
Dim ret As New List(Of String) : ret.Clear()
For Each de As DictionaryEntry In Environment.GetEnvironmentVariables()
ret.Add(de.Key.ToString & " = " & de.Value.ToString)
Next
Return ret
End Function

 
What Directory Contains this Program?
Private Shared Function Get_Get_Application_Folder() As String
Return Application.StartupPath
End Function

 
What is the folder and filename for this Program?
Private Shared Function Get_Get_Application_FullFileName() As String
Return Application.Application.ExecutablePath
End Function

DigitalDan.co.uk ... Hits = 270