tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
9
Task/Program-name/Visual-Basic/program-name-2.vb
Normal file
9
Task/Program-name/Visual-Basic/program-name-2.vb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Declare Function GetModuleFileName Lib "kernel32" Alias "GetModuleFileNameA" (ByVal hModule As Long, ByVal lpFileName As String, ByVal nSize As Long) As Long
|
||||
Dim fullpath As String * 260, appname As String, namelen As Long
|
||||
namelen = GetModuleFileName (0, fullpath, 260)
|
||||
fullpath = Left$(fullpath, namelen)
|
||||
If InStr(fullpath, "\") Then
|
||||
appname = Mid$(fullpath, InStrRev(fullpath, "\") + 1)
|
||||
Else
|
||||
appname = fullpath
|
||||
End If
|
||||
Loading…
Add table
Add a link
Reference in a new issue